Answer the question
In order to leave comments, you need to log in
Does extra CSS code slow down website loading?
I made myself a cascade on which I am already typesetting other pages, about 8500 characters.
If I work with the rest of the documents and save their compiled CSS to the same file, it turns out that in total 8.5k + ~ 18k characters. More than half of this code is not needed on other pages, and the question is, does such a mess affect the site loading speed? Would it be the most rational option to separate the CSS into separate files for each page, or does it not play a big role?
Answer the question
In order to leave comments, you need to log in
Remove all unnecessary CSS for one of the pages and compare the times .
What does "strongly" mean? Say, if it turns out that this gives a delay of 30ms - will it be strong? I would cut out all the extra code, mobile Internet users will only say thank you.
with proper css static / caching settings, it will be requested once
, it’s another matter that if css suddenly doesn’t load or is blocked, other pages will crawl ,
so each time the solution depends on the goals,
well, see for yourself how and what works
webo.in
www.webpagetest.org
If the weight of the CSS file is 18 KB, then no one will die from this. Of course, it will not be superfluous to clean up unused styles.
It is more important to check if CSS is served with GZIP compression:
www.whatsmyip.org/http-compression-test
If not, set it up urgently (for any hoster).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question