News for hackers. Stuff that matters.
Re:Faster web fonts by Dylan16807 on Sunday May 16, 2021 @02:42AM (#27171708)
> 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.

Re:Faster web fonts by markdown on Sunday May 16, 2021 @03:06AM (#27171821)
> 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.

Re:Faster web fonts by grenoire on Sunday May 16, 2021 @04:57AM (#27172295)
Webdevs 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.
Re:Faster web fonts by michalc on Sunday May 16, 2021 @03:10AM (#27171835)
I 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.
Re:Faster web fonts by markdown on Sunday May 16, 2021 @07:44AM (#27172997)
There absolutely are, and I've done it myself. But it's a rare site that would really benefit from the method.
Re:Faster web fonts by Dylan16807 on Sunday May 16, 2021 @03:39PM (#27176378)
Yeah but the first load is faster!