Is CLS still broken for single page apps?
Google Lighthouse V8 – Improved CLS metrics
51–60 of 63 posts
Re: Google Lighthouse V8 – Improved CLS metrics
#52Earlier quoted context omitted.
Ironically I've found the CLI to be the only stable channel of Lighthouse. What do you see that docker fixes?
Fixes this issue basically: https://github.com/GoogleChrome/lighthouse/issues/6512#:~:te... . Tried all of the proposed solutions and this error still pops up on certain sites and certain configuration settings. Felt totally random when it started happening.
Re: Google Lighthouse V8 – Improved CLS metrics
#53It's good to see that they've added a Content-Security-Policy related test. I checked and Lighthouse 8.0.0 still penalizes you on "best practices" if your CSP does not allow inline styles. Something that Lighthouse injects for testing tap-targets has inline styles, and Chrome will log a warning to the console, and Lighthouse penalizes you for that: https://github.com/GoogleChrome/lighthouse/issues/11862
Re: Google Lighthouse V8 – Improved CLS metrics
#54Is there a way to run lighthouse 8.0.0 on older versions of Chrome for local (development) websites, so we can test them now instead of waiting until Chrome 93 is released?
If you don't have Canary installed, the CLI will use Chrome Stable. If Canary is present, that is the default. This can be configured with CHROME_PATH.
Re: Google Lighthouse V8 – Improved CLS metrics
#55Re: Google Lighthouse V8 – Improved CLS metrics
#56It seems Accessibility measurement broke on web.dev/measure (the report mentions lighthouse 8.0.0): Background and foreground colors have a sufficient contrast ratio - Error! axe-core Error: Cannot read property 'filter' of undefined This website had ~80 in accessibility before. Edit: this issue was known before release: https://github.com/GoogleChrome/lighthouse/issues/11384
All of the reported URLs showing this issue no longer do, in the latest version of Lighthouse or on web.dev. Can you provide the URL (either here or in that issue) for which you still get this error? Thanks!
Re: Google Lighthouse V8 – Improved CLS metrics
#57It's good to see that they've added a Content-Security-Policy related test. I checked and Lighthouse 8.0.0 still penalizes you on "best practices" if your CSP does not allow inline styles. Something that Lighthouse injects for testing tap-targets has inline styles, and Chrome will log a warning to the console, and Lighthouse penalizes you for that: https://github.com/GoogleChrome/lighthouse/issues/11862
This admittedly slipped our minds. We'll be sure to fix this for the next release. Thanks for the reminder.
Re: Google Lighthouse V8 – Improved CLS metrics
#58Re: Google Lighthouse V8 – Improved CLS metrics
#59This is so exhausting, infuriating and perplexing. Just 1 week after managing to claw our LightHouse score up to 90 - its shot back down 72. The arbitrary nature of their weighting is just tiring - and its compounded by the fact that noone actually knows how much this actually impacts SEO.
Looks to me that you are not. using Lighthouse for the right reasons. Lighthouse isn't there to improve your SEO. It's just a set of heuristics that make you website performance - as perceived by end users - measurable, and thus improvable. They add a quantitative score on a very qualitative process. If you clawed your Lighthouse score to 90, you should have improved your end users experience, and that's what matters…
Re: Google Lighthouse V8 – Improved CLS metrics
#60Is CLS still broken for single page apps?
Can you elaborate? If you are referring to the long duration of a SPA, we resolved that by making CLS windowed: https://web.dev/evolving-cls/