Cumulative Layout Shift, Done Properly
A measure of how much visible content moves unexpectedly during a page's life.
On this page
The key figures
- Good
- 0.1 or less
- Needs improvement
- between 0.1 and 0.25
- Poor
- over 0.25
- Common causes
- images without dimensions, ads and embeds, late-loading fonts, dynamically injected content
- Exclusion
- shifts within 500 milliseconds of a user interaction are not counted
- Font mitigation
- metric override descriptors on the fallback
Why this is worth getting right
Layout shift is the most irritating performance problem to experience directly — it is what makes you click the wrong thing — and it is almost entirely preventable.
Do this, not that
Do
- Set width and height, or aspect-ratio, on every image and embed
- Reserve space for ads, banners and injected content
- Match fallback font metrics to the web font
- Insert new content below the current viewport, not above it
- Test on a slow connection, where shifts are most visible
Don’t
- Images with no intrinsic dimensions
- Banners and notices injected at the top of the page after load
- Fonts that reflow text when they arrive
- Testing only on a fast connection, where shifts are invisible
When to bring in help
Our advice Bring in help when CLS fails and the cause is not reproducible locally, when third-party content is responsible, or when an advertising layout must be stabilized.
Where this comes from
- web.dev — Cumulative Layout Shift
- MDN Web Docs — CSS aspect-ratio and font metrics
- Chrome for Developers — Layout shift debugging
The figures and practices above come from the sources listed.
Working on something like this?
We take on Performance & Accessibility work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.