specimen-skeleton icon indicating copy to clipboard operation
specimen-skeleton copied to clipboard

Auto-add preload to <head>

Open RoelN opened this issue 5 years ago • 2 comments

As per https://www.zachleat.com/web/preload/

RoelN avatar Feb 11 '20 16:02 RoelN

How would this practically work @RoelN? A preload directive for every font in src/fonts could be nice, but also not what you want in all cases (for example if the font is not used).

pascalw avatar Feb 13 '20 13:02 pascalw

I think for a specimen it's a special case: the whole point of the entire site is to show that font, so the sooner it loads, the better.

If developers somehow feed the setup process with fonts they're not using, I don't think it's the setup process' responsibility to fix that, right?

RoelN avatar Feb 13 '20 14:02 RoelN