-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Ensure text remains visible during webfont load #7708
Comments
Thanks very much for filing @andyfurniss4 I can confirm this is a bug! The carriage returns in your stylesheet were throwing our parsing. Ref #7712 |
Excellent! Glad it's not something I'm doing wrong :) Thanks for diagnosing and sorting so soon. |
Fixed by #7712 |
@patrickhulce Has this been rolled out to tools like Page Speed Insights yet? Regardless, I'm seeing some similar behavior still, but even when there are no linebreaks in the CSS at all. Given my AMP-first site https://weston.ruter.net/ which has a single minified @font-face{font-display:swap;font-family:"Libre Franklin";font-style:italic;font-weight:300;src:local("Libre Franklin Light Italic"),local("LibreFranklin-LightItalic"),url("https://fonts.gstatic.com/s/librefranklin/v3/jizGREVItHgc8qDIbSTKq4XkRiUa454xm1npiA.ttf") format("truetype")} This is still getting flagged with the "Ensure text remains visible during webfont load" audit: Why is that? |
Seeing same warning in Lighthouse directly: Again, this |
Thanks @westonruter that's a different issue! Filed #8534 |
Hey, |
I know there are a couple of other issues related to this but I've read through them and they have not helped me so I am posting a new issue to see if I can get help making progress or to discover whether this is a bug not not.
I am receiving an "Ensure text remains visible during webfont load" message when running Lighthouse:
I have added the font-display CSS property and set it to "swap" (I've also tried "fallback") but this seems to make no difference. Here is my font CSS:
This CSS is contained in it's own file and pre-loaded in my
<head>
tag.I am also preloading the woff2 files because Lighthouse was previously giving me a message telling me to do this:
Removing the preload of the fonts does not make the "Ensure text remains visible during webfont load" issue go away though so I don't think it's related.
For a while, Google PageSpeed was reporting this issue but the Lighthouse integrated into Chrome dev tools was not so I just assumed it was a bug with the GPS version but I've just updated Chrome and now I'm getting it in the Dev Tools too!
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: