Skip to content

Web Development & Performance

CLS (Cumulative Layout Shift): what it means and how it works

By Creolume Team5 min read

In short

CLS, or Cumulative Layout Shift, is a Core Web Vitals metric that measures how much visible content moves unexpectedly while a page loads or is used. A good CLS score is 0.1 or less.

What is Cumulative Layout Shift?

You have probably tried to tap a button just as the page jumped and you hit something else. That annoying movement is a layout shift. CLS adds up how far and how much of the screen moved without the user doing anything.

It is one of the three Core Web Vitals, alongside Largest Contentful Paint and Interaction to Next Paint, and it reflects visual stability.

How CLS is scored

Each unexpected shift gets a score based on the fraction of the viewport that moved and the distance it moved. CLS groups shifts into windows and reports the largest burst. Google's thresholds are: good at 0.1 or less, needs improvement up to 0.25 and poor above 0.25, measured at the 75th percentile of real visits.

Movement caused directly by a user action, such as expanding a menu, does not count.

CLS thresholds: 0.1 or less is good, 0.1 to 0.25 needs improvement and over 0.25 is poor
Google's CLS bands at the 75th percentile of visits.

Common causes

  • Images, videos or iframes without width and height
  • Ads, embeds and banners that load late and push content down
  • Web fonts that swap and change text size
  • Content injected above existing content, such as cookie notices
  • Animations that change layout properties instead of using transforms
  • Lazy-loaded elements that appear without reserved space

How to fix layout shift

  • Set width and height attributes, or CSS aspect ratio, on all images and videos
  • Reserve space for ads and embeds with fixed containers
  • Load fonts with a suitable fallback and use font-display options, and preload key fonts
  • Insert banners and notices in reserved areas or overlay them instead of pushing content
  • Animate with transform and opacity
  • Avoid inserting content above what the user is reading
Checklist for fixing layout shift: image dimensions, reserved space, font handling, non-pushing banners, transform animations and no injected content above
Six fixes for most CLS problems.

How to measure CLS

Use field data from the Chrome User Experience Report through Search Console and PageSpeed Insights. Lab tools such as Lighthouse and Chrome DevTools highlight layout shifts and show which elements moved. Test on slow connections and real devices, since shifts often appear only under realistic loading.

Third-party content

Ads, chat widgets and embedded social posts are frequent causes. Give them reserved space, load them after the main content or ask providers for stable sizes. Audit scripts that insert content into the page.

Debugging tips

In Chrome DevTools, use the Performance panel's Layout Shift track or the Layout Shift Regions option to see what moved. Check the rendered size of images before they load. Compare behaviour with and without ads or consent banners to find the source.

Why it matters

Layout shifts cause misclicks and frustration, which affect conversions, particularly on mobile. Stable layouts feel more professional. Core Web Vitals are also part of Google's page experience signals, although content relevance remains more important.

Layout shift on mobile

Mobile screens are small, so a shift of a few pixels covers a large share of the view. Banners, sticky bars and late-loading images are frequent culprits. Test on real devices with a throttled connection, where late assets cause the most movement.

Pay attention to elements that change height after load, such as accordions, carousels and cookie notices. Reserve their space, and avoid layouts that depend on scripts to calculate dimensions after the first paint.

Key takeaways

  • CLS measures unexpected layout movement
  • A good score is 0.1 or less at the 75th percentile
  • Set image and video dimensions, and reserve space for ads and embeds
  • Load fonts carefully and avoid pushing content down
  • Measure with field data and debug with DevTools

How Creolume can help with CLS (Cumulative Layout Shift)

We find what slows your pages and fix it, then prove the improvement with before and after data. If CLS (Cumulative Layout Shift) is on your list of priorities, our team can review where you stand, explain what matters for your site and your market, and agree a realistic plan.

You can explore our Website Speed Optimization service or contact us for a short, no-obligation conversation. We will tell you honestly what is worth doing first and what can wait.

CLS (Cumulative Layout Shift) FAQs

What is CLS?

Cumulative Layout Shift, a Core Web Vitals metric that measures unexpected movement of visible content.

What is a good CLS score?

0.1 or less, measured at the 75th percentile of real page visits.

What causes layout shift?

Images without dimensions, late-loading ads and embeds, font swaps and content inserted above existing content.

How do I find which element shifts?

Use Chrome DevTools layout shift regions or the Performance panel, or Lighthouse's diagnostics.

Does CLS affect SEO?

It is part of Google's page experience signals, but content relevance matters more. It also affects user experience and conversions.

Can I have zero CLS?

It is possible on simple pages. Aim for a good score under 0.1, not perfection.

Does CLS count shifts after the user clicks?

Shifts that happen soon after a user interaction, such as expanding a menu, are excluded.

Not sure where to start?

Tell us about your site and your goals. We will reply with an honest view of what to fix first.