[meta] Cumulative Layout Shift (CLS) implementation
Categories
(Core :: Performance: General, enhancement)
Tracking
()
| Size Estimate | L |
People
(Reporter: bdekoz, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug, )
Details
(Keywords: meta, Whiteboard: [platform-feature])
User Story
webcompat-risk:low
The Cumulative Layout Shift metric is one of three core metrics in Google's web vitals suite of analytic tools for web performance.
More information can be found here: https://web.dev/cls/
This bug tracks the status and implementation of this metric in Gecko.
Dependencies include the Layout Instability API, and the specification can be found in the Largest Contentful Paint API (https://wicg.github.io/layout-instability/)
The way this metric is scored has changed from the original design, with the first round of experiments by Google leading to changes WRT long page loads, etc are computed.
Cumulative Layout Shift (CLS) - a Core Web Vitals metric, measures the instability of content by summing shift scores across layout shifts that don't occur within 500ms of user input.
The most common causes of a poor CLS are:
Images without dimensions
Ads, embeds, and iframes without dimensions
Dynamically injected content
Web Fonts causing FOIT/FOUT
Actions waiting for a network response before updating DOM
Also had Cumulative Layout Shift problem when optimizing https://www.quictents.com/ , but, after reading the how-to on https://web.dev/i18n/en/optimize-cls/ , it became very easy.
Comment 2•3 years ago
|
||
The meta keyword is there, the bug doesn't depend on other bugs and there is no activity for 12 months.
:fdoty, maybe it's time to close this bug?
Comment 3•3 years ago
|
||
:bdekoz is this still an issue which needs to be tracked as an individual bug?
| Reporter | ||
Comment 4•3 years ago
|
||
I think we should keep this as a tracker, even though we are not currently working on it. There are some interesting technical ideas here, and this is another of the google algos like "contentful" that are showing up in various parts of webperf.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•10 months ago
|
Updated•15 days ago
|
Description
•