I'm trying to target a high score on Pagespeed insights but one of these warnings is out of my control. Pagespeed insights suggests "Ensure text remains visible during webfont load". I've done this for all my self hosted fonts but how the warning still appears for the material fonts .woff file. Can I fix this myself?
You can try self hosting that font too. That way you'll have everything under your control.
I've done this for all my self hosted fonts
Do you include many fonts on same page?
I read in the readme and probably somewhere else too that self hosting the file is not recommended so I didn't do it. I think its better if Google would add font-display: swap
to their css files. It is better than what they have currently.
Do you include many fonts on same page?
I have 3 font weights of another font whose files are self hosted.
FYI, we recently added font-display support to Google Fonts, use display=swap
(or whatever your preferred value is).
https://developers.google.com/fonts/docs/getting_started#use_font-display
Bingo! Thank you so much. Thats perfect!
Most helpful comment
FYI, we recently added font-display support to Google Fonts, use
display=swap
(or whatever your preferred value is).https://developers.google.com/fonts/docs/getting_started#use_font-display