I have minified js and css and optimized images. Used async=”async” in
js where it is applicable. How to fix “Eliminate render-blocking
JavaScript and CSS in above-the-fold content”
Any Ideas?
I have minified js and css and optimized images. Used async=”async” in
js where it is applicable. How to fix “Eliminate render-blocking
JavaScript and CSS in above-the-fold content”
Any Ideas?
2
Answers
Your JavaScript won’t block DOM elements from loading if you’ve used the
async
attribute. But we’re only half way there. Regarding CSS, minifying it is a good start, but it will still block the parser from rendering elements until it’s finished loading. The following is the solution that I prefer, which adjusts themedia
attribute of a stylesheet link until it’s loaded: