Improve the preload header order
-
When I check “HTTP/2 push” for both JS and CSS under “Minify” settings, the order that the preload headers appear in the response is suboptimal and causes render-blocking issues. All of the JS files are preloading first, with the CSS files preloading last. This causes a delay before the remainder of the HTML assets (images, etc.) are loaded which increases the delay before DOMContentLoaded fires (thus worsening my pagespeed results).
The order that the preload headers should appear in is:
1. CSS found in </head>
2. JS found in </head> without async
3. …Depending on how fixing the order as described above affects the page load times (are preloaded files downloaded in parallel or series?), it might also be advisable to specify whether or not JS found in </body> are preloaded at all.
- The topic ‘Improve the preload header order’ is closed to new replies.