what is the reason Angular2 app loading slow?
I have angular2 project created from seed and I’ve added several angular components on my initial page. Some of them load images – which is relatively slow, but the actual problem is:
I have a bundle which is big (~1mb) and I am currently working on it to make it smaller following a guide on the subject.
The initial load makes just a few requests, loads the bundle (usually ~ 3 seconds) and waits to the Angular application to bootstrap (~1.4 seconds). After that it starts loading all components and load their resources (fonts, images, etc.). Here is how the request looks like:
My Question is
- Is there a way to load the component resources earlier and just reference them on component load?
- Is there a way to make the application bootstrap faster?