I use Angular 5 AOT to build my website. It work well but It has low score on google spacespeed.
After I have spend lots of time to troubleshoot, I wonder why bundled js files are always at the bottom of index.html.
How do I bring those bundled js files to html header. It is the way to force bundled js files be downloaded first.
Asked
Active
Viewed 36 times
-2

R. Richards
- 24,603
- 10
- 64
- 64

R.Kaka
- 167
- 6
- 16
1 Answers
0
I believe it is better to leave the bundled js files at the bottom because they block parallel downloads.

jh314
- 27,144
- 16
- 62
- 82
-
If the page has plenty of images, browser downloads images first then it blocks bundled js files util downloading images finish. – R.Kaka Aug 17 '18 at 01:35