Layout shift: the metric nobody measures until it hurts
On a fast office connection the page is perfect. On a real phone over real mobile data, the content jumps three times before it settles — and that is when users bounce.
Cumulative Layout Shift is the most honest Core Web Vital, because it measures something users feel directly: you tap a button and the button moved. It is also the most commonly skipped metric, because it is near zero on the developer's machine. CLS is a metric of conditions — slow networks, real viewports, real content — not of code correctness.
The usual root causes
Almost every CLS problem we find traces back to one of four patterns:
- Media without reserved space. An
imgor hero video with nowidth/heightor CSSaspect-ratiooccupies zero space until it loads, pushing everything below it down. - Web fonts that swap late. A font that loads late and renders with different metrics reflows every paragraph. Fix with
font-display: swapplus size-adjust fallbacks, or preload the exact files above the fold. - Injected content. Cookie banners, ads and chat widgets inserted into the DOM after load shove the page around. Reserve their space up front.
- Async HTML. Lists rendered by JavaScript after the initial paint change the page height and move the footer — and everything the user was reading.
The rule: every element that will exist owns its space from the first paint — even if the pixels inside it arrive later.
The pre-launch checklist
Before any launch we run the same sequence. Test on throttled 4G, not on the office Wi-Fi. Check real viewports, including the small phones that most traffic actually uses. Then verify the boring details: explicit dimensions on all media, preloaded hero assets with fetchpriority="high", no late-loading banners in the first viewport, and no content inserted by script above the fold.
Why it matters beyond the score
Google uses CLS as a ranking signal, but that is the smaller reason to care. Layout shift is the visible symptom of a page that does not know its own shape — and the same discipline that fixes it (reserve space, load deliberately, render statically) also makes the page faster and easier for AI crawlers to read. A stable page is a well-built page.
If your site jumps on mobile, this is fixable in days, not months. It starts with measuring CLS on real connections and attributing each shift to its element — then making each element own its space. We hold the web applications we build to the same rule.