What is Cumulative Layout Shift?

DEFINITION

Cumulative Layout Shift (CLS) measures how much visible content unexpectedly moves around while a page loads or is used, a Core Web Vital for visual stability.

CLS quantifies unexpected layout movement. You have likely experienced it: you go to tap a link, an ad loads above it, and you tap the wrong thing. Each shift is scored by how much of the viewport moved and how far. CLS reports the largest burst of shifts during the page's lifetime.

Google rates CLS as good at 0.1 or less and poor above 0.25. Shifts that happen within half a second of a user interaction, such as opening a menu, are expected and not counted.

Why CLS matters

Layout shifts make a page feel unpolished and can cause real mistakes, like clicking the wrong button or losing your place while reading. On a checkout or form page, that frustration can cost sales. CLS is also one of Google's Core Web Vitals used in page experience signals.

Common causes and fixes

Most shifts come from content that loads without reserved space. Images without width and height attributes, ad slots and embeds that expand, cookie banners pushed in at the top, and web fonts that swap in with different sizes are frequent culprits. For example, a news site can set fixed-height containers for ad slots, add width and height to every image so the browser reserves the right aspect ratio, and show its cookie notice as an overlay instead of pushing content down.

Best practices

  • Always include width and height attributes or a CSS aspect-ratio on images and videos.
  • Reserve space for ads, embeds and dynamic widgets before they load.
  • Insert banners and notices as overlays rather than above existing content.
  • Use font-display settings and similar fallback fonts to reduce text reflow.

Common mistakes

  • Injecting promotional bars at the top of the page after it has started rendering.
  • Animating layout properties like height or top instead of transform.
  • Testing only the initial load and missing shifts that happen while scrolling.

Frequently asked questions

What is a good CLS score?

A CLS of 0.1 or less is good, 0.1 to 0.25 needs improvement, and above 0.25 is poor. As with other Core Web Vitals, Google evaluates the 75th percentile of real user visits, so the score must be good for most visitors, not just in a single test.

How do I find what is causing layout shift?

PageSpeed Insights and Lighthouse list the elements responsible for the largest shifts. In Chrome DevTools, the Performance panel highlights layout shift regions as you record a page load. Testing on a throttled mobile connection makes shifts easier to spot.

Does lazy loading cause layout shift?

It can if lazy-loaded images have no reserved dimensions, since the space appears only when the image loads. Giving every image width and height attributes or a CSS aspect ratio lets the browser reserve the correct space in advance, preventing the shift.

Need help with this?

Sviluppo siti web by VYZEON — Siti web che si caricano all'istante, si posizionano meglio e convertono.

Fixed packages from $299. Written scope, no surprises.

See Sviluppo siti web

Related terms

More SEO terms