Skip to content

This guide answers: cumulative layout shift: the usual causes and the fixes

Cumulative Layout Shift: the usual causes and the fixes

Learn what CLS measures, why pages shift while loading, and how to fix the usual causes: media, web fonts, late content, animations and embeds.

By Hannah Wells, Technical SEO, site performance and online stores
· 7 min read

updated 

Cumulative Layout Shift: the usual causes and the fixes
FIG. 01 Photo JESHOOTS-com / Pixabay

Short answer

Cumulative Layout Shift, or CLS, measures visual stability: how much content moves around unexpectedly while a page loads or is used, when the movement is not the result of a user action. A good score is below 0.1 at the 75th percentile, on mobile and desktop. The usual culprits are media without reserved space, web fonts that swap, content injected late, layout animations and third-party embeds. Each has a known fix.

Key points

  1. You start reading a paragraph. Then an image loads above it and the text jumps down.
  2. The score starts at 0. A page where nothing moves unexpectedly scores 0.
  3. Images and videos that have no explicit width and height, and no reserved space, are the classic cause.
  4. The fixes follow the causes. You are not rewriting the page.

What is Cumulative Layout Shift (CLS)?

You start reading a paragraph. Then an image loads above it and the text jumps down. You reach for a button, a banner appears, and you tap the wrong thing. That is a layout shift, and CLS is the metric that puts a number on it.

Google describes CLS as a measure of visual stability. It captures the extent of unexpected movement of page content. The word “unexpected” matters. If you open a menu and the content moves because you asked it to, that is not counted against the page. If the content moves on its own, it is.

Shifts matter most during loading, when elements arrive at different moments. They also matter during interaction, when something new appears after the page looks finished. In both cases the damage is the same: the reader loses their place, clicks the wrong element and trusts the page a little less.

CLS is one of the Core Web Vitals. Google’s documentation says the Core Web Vitals align with what its ranking systems look for, in line with a good user experience. That is a statement about alignment, not a promise about position. A stable page is better for readers, and that is the main reason to care.

How Google measures CLS

The score starts at 0. A page where nothing moves unexpectedly scores 0. The more content shifts, the higher the number climbs, with no fixed ceiling. A low number is good.

Google sorts results into three bands. The evaluation is made at the 75th percentile of page loads, and it applies to mobile and desktop alike. In practice, that means most of your visitors need a stable experience, not just the best cases.

Good
Below 0.1
Visually stable
Needs improvement
Between 0.1 and 0.25
Noticeable movement
Poor
Above 0.25
Content jumps around

CLS is a field metric. It reflects what real visitors experience, on their devices and connections. You can collect it yourself in JavaScript with Google’s web-vitals library, using its onCLS() function. You do not need the full mathematical formula to work on the problem. What you need is the habit of asking, for every element on the page: does it have its space reserved before it arrives?

Common causes of Cumulative Layout Shift

Most layout shifts come from the same short list. The pattern is always identical: the browser does not know how big something will be, so it makes room for nothing, and then the content gets pushed when the thing arrives.

Media without dimensions

Images and videos that have no explicit width and height, and no reserved space, are the classic cause. The browser lays out the text as if the image were not there. When the file arrives, everything below is pushed down. A responsive image without an aspect ratio shows the same problem when the viewport changes: the box recalculates and the content reflows.

Web fonts

When a page first shows text in a fallback font and then swaps to the web font, the letters change width and height. Lines wrap differently, and paragraphs grow or shrink. The text itself did not change, but its pattern did, and everything after it moves.

Content injected above existing content

Banners, review widgets and components that load late are a frequent source. If they are inserted above content the reader is already looking at, the content is shoved down. A cookie notice or a promotional bar that appears after the page has painted is a typical example.

Animations that change layout properties

An animation that changes top, height or margin forces the browser to recompute the layout of surrounding elements. A sliding panel built that way can move the whole page with it, even when the designer only meant the panel to move.

Third-party embeds and iframes

Embeds, iframes and video players whose dimensions are unknown arrive late and at a size nobody planned for. Because you do not control the content inside them, they are easy to forget until the score drops.

How to fix CLS: solutions by cause

The fixes follow the causes. You are not rewriting the page. You are telling the browser, early, how much room each element needs.

Cause → Fix

  • Images and videos → set width and height, or use CSS aspect-ratio, so the space is held before the file loads.
  • Web fonts → use font-display, preload the critical fonts, and match the fallback with size-adjust, ascent-override and descent-override.
  • Late injected content → reserve its space in advance, and avoid inserting it above what the reader is already viewing.
  • Animations → animate transform and opacity instead of width, height, top or margin.
  • Embeds and iframes → wrap them in a container with explicit dimensions or an aspect-ratio.

Reserve space for media

Declaring width and height lets the browser work out the proportions before the file arrives. CSS aspect-ratio does the same job when you want the box to scale with its container. Either way, the space exists from the start, so nothing gets pushed later.

Tame the font swap

Start with font-display, which controls what the browser shows while the font loads. Preloading the fonts your page depends on shortens the gap between fallback and final text. Then bring the two closer: size-adjust, ascent-override and descent-override let you tune the fallback font so its metrics resemble the web font. When both fonts occupy nearly the same space, the swap is hard to notice and the lines stay where they were.

Handle late content with a placeholder

If a component has to load late, give it a container that already has its final size. The component fills the box instead of creating one. For banners and notices, the safest habit is not to push existing content at all.

Move with the compositor

Transform and opacity are handled by the compositor and do not alter the layout of neighbouring elements. If you need to slide, grow or fade something, express it with those properties. A panel can then move without the text around it noticing.

Give embeds a fixed frame

Wrap every iframe, embed and video player in a container with explicit dimensions or an aspect-ratio. The third-party content then loads inside a space you have already set aside. You do not need to control what is inside, only the size of the frame.

Measuring and debugging CLS on your site

Start with what your visitors actually experience. The Core Web Vitals report in Google Search Console groups your URLs by status, so you can see which pages fall in the good, needs improvement and poor bands. It points you to patterns, not to the exact element.

To find the element, use Chrome DevTools and Lighthouse on the problem pages. They help you watch the page load and spot what moves. If you want your own field data, add the web-vitals library and report onCLS() to wherever you collect analytics. Treat the result as a check on whether the fixes above worked, not as a goal in itself.

A practical order of work: look at the Search Console groups, open a representative page, find which element moves, match it to a cause in the list above, and apply the matching fix. Then re-measure.

Why CLS matters for SEO (and beyond)

On the search side, the facts are modest. CLS is a Core Web Vital, and Google says these metrics align with what its ranking systems seek to reward. It is one signal among many. Fixing it does not guarantee a better position, and nobody can promise that.

The stronger argument is for the reader. A page that holds still is easier to read, easier to click and easier to trust. Fewer mis-taps and less visual noise make it more likely that people stay and complete what they came to do, whether that is reading an article or filling in a form. That is a reason to fix layout shift even if you never look at a ranking report.

Sources

  • web.dev, Web Vitals article, consulted on 03/12/2026
  • Google Search Central, Core Web Vitals documentation, consulted on 03/12/2026
  • Google Search Console Help, Core Web Vitals report
Cumulative Layout Shift: the usual causes and the fixes en chiffresCLS score: good< 0.1scoreCLS score: needs improvement0.1 à 0.25scoreCLS score: poor> 0.25scoreCommon causes of Cumulative Layout Shift5

Read next in Technical SEO

seo-service-journal technical-seo

How Google crawls a website: crawl budget, crawl rate and what slows it down

· 8 min read

seo-service-journal technical-seo

Indexing explained: why a page is crawled but not indexed

· 8 min read

seo-service-journal technical-seo

Robots.txt: syntax, common mistakes and how to test it

· 6 min read

Free newsletter · every Monday

The Monday Crawl

One email each Monday: what changed in the official search documentation, and what to check on your own site.

Free. One click to unsubscribe. We use your email only to send the newsletter. Privacy policy.