You start reading, an ad loads above the text, and the paragraph jumps down. You go to tap a link and hit a different one. CLS puts a number on that. Each shift is scored by how much of the viewport moved and how far. CLS reports the largest burst of shifts (a session window) during the visit.
Thresholds at the 75th percentile: 0.1 or less is good, over 0.25 is poor. Shifts within 500 ms of a user input do not count, because the user expected a change.
Common causes and fixes
| Cause | Fix |
|---|---|
| Images and video without dimensions | Set width and height, or CSS aspect-ratio |
| Ads, embeds, iframes | Reserve space with a fixed-size container |
| Content injected above existing content | Insert below, or reserve space |
| Web fonts swapping | Use size-adjust on the fallback font, or font-display: optional |
| Client-side rendered components replacing placeholders | Render on the server or match placeholder size |
Example
<img src="/chart.png" width="800" height="450" alt="Traffic by month" />
With width and height set, the browser reserves the box before the image loads.
JavaScript sites
Hydration mismatches and late client data often cause shifts: a server-rendered “Sign in” button becomes “My account” after hydration and pushes the layout. Cookie banners that push content down instead of overlaying it are another frequent cause.
Common mistakes
- Checking CLS in a lab run that ends before late ads and lazy content load.
- Fixing desktop and ignoring mobile, where layouts are narrower and shifts are larger.
How Renderly handles it
We record shifts with field data and fix them per template. See Core Web Vitals and our technical SEO service.