3 ms·
The OP mentions font loading starts as soon as a .css directive using the font is encountered, which makes me think the initial html page load could include a t
by ivan_ah 11y ago
The OP mentions font loading starts as soon as a .css directive using the font is encountered, which makes me think the initial html page load could include a tiny snippet of .css with the font defs and a dummy styling instruction that use the font. The idea is to load the rest of the .css in parallel with the .woffs. Would this work?
I guess prefetch does exactly that, but wondering if the "hack" would work.
- jrochkind1 11y agoThat seems worth pursuing. I'd want to verify that when the font is loaded this way, it's loaded async, and doesn't stop further asset loading until complete. Or else it might not be a great solution.