Answer the question
In order to leave comments, you need to log in
How to include css to optimize site performance for Pagespeed Insights?
Hello! I searched a lot on the Internet, on this forum, but nothing helps. Pagespeed Insights issues: "Remove the JavaScript and CSS code blocking the display of the top of the page", namely, it swears at the css file, which is now just a link tag connected to the head, I tried to take a piece of css code responsible for the site header, remove it and tag style, put it in the head, and <link rel="stylesheet" href="css/style.css"/>
throw it at the very end of the code, as a result, Pagespeed Insights removed this problem from the list, but at the same time terribly lowered the optimization scores, as it turned out, due to the fact that it <link rel="stylesheet" href="css/style.css"/>
began to connect after all the html code while the site was loading css code appears first , and then the site itself. Trying to put<link rel="stylesheet" href="css/style.css"/>
above all the content, caused the site to start loading as before well, but Pagespeed Insights again gave a css optimization error, although it returned those lost points, strange things, please tell me what exactly Pagespeed Insights wants?
Answer the question
In order to leave comments, you need to log in
Pagespeed Insights says: "Remove the JavaScript and CSS blocking the display of the top of the page",
The bottom line is that you need to select critical CSS and inline in HEAD (i.e. through ).
Connect the rest before the closing BODY via . <style></style>
<link>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question