-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Lighthouse reports deprecated API: H1UserAgentFontSizeInSection - but I can find no reference to this? #16404
Comments
We pull in the deprecation descriptions from the I dug up the description used in DevTools:
We should definitely update the package and pull in the latest strings. cc @paulirish |
https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements#specifying_a_uniform_font_size_for_h1 has advice for web developers which should make the warning go away and ensure you get the same rendering across browsers. |
Chromium's console message was updated in https://chromium-review.googlesource.com/c/chromium/src/+/6384455
|
There is a brief period after the first paint where the stylesheet hasn't loaded in yet, and so the page has a flash of unstyled text. Looks like Chrome detects the unstyled I will ask upstream if this is intended behavior. |
Using MDN's suggested CSS in a stylesheet that blocks the first paint (e.g. in a
(Arguably, loading CSS async with a flash of unstyled text is not ideal, and might also impact CLS.) |
Summary
I’m aiming for a perfect Lighthouse score on my website.
The only remaining issue is a warning under “Deprecated APIs” referencing
H1UserAgentFontSizeInSection
. I’ve Googled the term and found no documentation or references to it—aside from my own Reddit post. It seems to be completely undocumented.Can anyone clarify what this warning actually means and what changes I might need to make to resolve it?
Lighthouse CLI version:
12.4.0
The text was updated successfully, but these errors were encountered: