H
H
howehohit2015-10-24 16:55:08
css
howehohit, 2015-10-24 16:55:08

How to solve the critical path problem on a large site?

Hello. Usually I put the styles of the critical path (the styles that are needed to display the first screen to the user) in the header for the main page and did not take a steam bath. Now I am working on a rather large project (more than 30 pages), which is created on Bitrix. The heading is taken out in a separate file and therefore taking out all the styles of the critical path for all pages through the conditions is still a hassle, I am silent about further support. I see only 1 solution to the problem - to generate the styles of the first screen with gulp for each page and insert it right under the header in the body of the page.
The remaining styles are loaded after loading the page from the footer in one file.
Perhaps someone can share a working way? I will be grateful

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Startsev, 2015-10-24
@esvlad

And how many megabytes does the page weigh, what makes styles not in the head prescribe?
And 30 more pages, is that a lot? it would be 300 at least...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question