Answer the question
In order to leave comments, you need to log in
What if all styles are in html?
I helped on freelancing on the little things, a person bought and installed a ready-made template, I look - all styles are written in html through style. As a result, in a one-page landing, html weighs 52kb. Also through id. All through id.
I myself do not fully understand it yet, but, in my opinion, does this greatly affect the download speed?
What to tell the client, compress html (after compression 52kb -> 9kb) or rewrite all styles in css?
Answer the question
In order to leave comments, you need to log in
I myself do not fully understand it yet, but, in my opinion, does this greatly affect the download speed?
On the contrary, inlined styles will speed up loading due to the absence of an additional style file request.
But supporting them is hell, of course.
Take out styles and use classes in those places where it is requested. The speed does not depend on where the styles are written, it's just more convenient if they are in an external file. By using classes instead of id, you can optimize the code for JS and CSS, which will increase the speed.
In any case, edit the handles.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question