3 ms·
> I don’t know why more websites don’t do this. Even having one large CSS file with everything compressed is much much faster then the waterfall of more files/c
by Dylan16807 6y ago
> I don’t know why more websites don’t do this. Even having one large CSS file with everything compressed is much much faster then the waterfall of more files/connections.
I could make a similar argument to say not to use CSS files, just embed everything into the page.
Unless you have a ton of files, listing them all in the html will make them load just about as fast as a single file listed in the html.
- markdown 6y ago> I could make a similar argument to say not to use CSS files, just embed everything into the page. Then the poor user has to download heavier html on every page as the browse the site.
- michalc 6y agoI actually think there are cases for this. Say, you have a small amount of CSS and/or the user will in all probability just look at the one page on the site.
- markdown 6y agoThere absolutely are, and I've done it myself. But it's a rare site that would really benefit from the method.
- grenoire 6y agoWebdevs usually forget that neither practically unlimited bandwidth nor quotas should be take for granted. A lot of people have slow internet connections, don't make 'em suffer.
- Dylan16807 6y agoYeah but the first load is faster!