Angular2 app is loading slow, how can I improve the performance on load?
I use Angular2, typescript with html5.
currently my app takes 4 seconds to load.
I host with Firebase and use cloudflare.
Things I'm doing / info:
- I've compressed images.
- I minify css
- I minify js.
- I use async on my scripts.
- My scripts are in my .
- The scripts are around 700kb
- I used google speed test and get 65%
- I used minified version of the libs I use e.g. bootstrap etc.
- Using systemjs.
- This is the seed app im using: https://github.com/mgechev/angular-seed
Flow:
When the app loads it shows a blue screen (this is the bootstrap css) and then 4 seconds later the app loads and works really fast. But takes 4 seconds to load. It seems the app.js file that systemjs minifies to is slowing the whole app, and not showing the views fast enough.
This is my website speed test:
https://www.webpagetest.org/result/161206_F5_N87/
This is my website:
Let me know if you need more information about my app and any other things I can do.