Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with material fonts in Pagespeed Insights #926

Closed
Whip opened this issue Apr 24, 2019 · 4 comments
Closed

Problem with material fonts in Pagespeed Insights #926

Whip opened this issue Apr 24, 2019 · 4 comments

Comments

@Whip
Copy link

Whip commented Apr 24, 2019

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?

97

@cyberalien
Copy link

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?

@Whip
Copy link
Author

Whip commented Apr 24, 2019

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.

@rsheeter
Copy link
Collaborator

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

@Whip
Copy link
Author

Whip commented May 25, 2019

Bingo! Thank you so much. Thats perfect!

@Whip Whip closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants