CLS (Cumulative Layout Shift) is the Core Web Vitals metric that measures the visual stability of a page, meaning how much visible elements shift on screen while the page loads.
Key Points
- A CLS score under 0.1 is considered good by Google; over 0.25 is considered poor.
- It is frequently caused by images without defined dimensions, dynamically loaded ads, or fonts that load late and shift the layout.
- It is measured across the entire page lifespan, not just at initial load, summing all unexpected visual shifts.
- A high CLS can lead to accidental clicks on elements that have shifted, negatively affecting user experience.
Practical Example
A page that loads an ad banner without reserved space can suddenly shift content while the user is reading, producing a high CLS score.
Why It Matters
A high CLS signals a frustrating user experience and is one of the Core Web Vitals signals Google considers when evaluating page experience.
FAQ
How do I reduce CLS on a page?
By reserving fixed space for images and ads, avoiding dynamic content insertion above existing content, and loading fonts in a stable way.
Does CLS only affect pages with ads?
No, it can also be caused by images without set dimensions, cookie banners, or asynchronously loaded content.