E
E
Evgeniy-Web2017-05-02 10:46:24
css
Evgeniy-Web, 2017-05-02 10:46:24

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 68336466be9545d0806c4d5267d4cf02.png, 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

3 answer(s)
S
Site Developer, 2017-05-02
@Evgeniy-Web

Pagespeed Insights says: "Remove the JavaScript and CSS blocking the display of the top of the page",

Fuck this nonsense and fake service.
But the site, of course, oppa .. needs to be optimized . girl too

Z
zooks, 2017-05-02
@zooks

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>

D
Damir, 2018-06-07
@ddem

It is not worth chasing 100% in GPSI, it is not worth it either in optimization or in further support of the site.
It is enough to include compressed css in head and compressed js before

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question