ExpertsGrow logo Get a free quote ↗

Cumulative Layout Shift: How to Find and Fix CLS in WordPress

November 19, 2026 · 12 min read
Cumulative Layout Shift: How to Find and Fix CLS in WordPress

Quick answer: What is CLS? Cumulative Layout Shift is a Core Web Vitals metric that scores how much page content moves unexpectedly while it loads. A good score is 0.1 or less. Above 0.25 is poor. Google judges it at the 75th percentile of real page loads, for mobile and desktop separately.

What is cls: Experts Grow guide cover

You are about to tap “Add to cart” and the button jumps down. You hit an ad instead. That jump is what CLS measures.

So, what is CLS in practice? It is a number that tells you how stable your page feels. Google reads it from real Chrome users and uses it in the Core Web Vitals report. Below you will see how the score works, what causes shifts, how to find them and 7 easy fixes for WordPress.

What Is CLS in Core Web Vitals?

CLS stands for Cumulative Layout Shift. It is one of the three Core Web Vitals, alongside Largest Contentful Paint (LCP, loading speed) and Interaction to Next Paint (INP, responsiveness).

According to web.dev’s CLS documentation, CLS is a measure of the largest burst of layout shift scores for every unexpected layout shift on a page. A layout shift happens when a visible element changes position between two rendered frames without the user asking for it.

CLS has no unit. Lower is better, and zero means nothing moved.

Here are the thresholds Google publishes:

CLS scoreRating
0.1 or lessGood
Above 0.1 up to 0.25Needs improvement
Above 0.25Poor

Google measures this at the 75th percentile of page loads. In plain words, at least 75% of your real visits need a score of 0.1 or less for the page to pass. The split is by device, so mobile and desktop are judged separately.

Why CLS matters beyond rankings

Shifting layouts cause misclicks, lost reading position and abandoned forms. On a store, a moving button can cost a sale. That is the real reason to care, with search benefits on top.

How Layout Shift Is Scored

What is CLS really counting? Movement of visible elements, weighted by size and distance.

You do not need the math to fix CLS, but it shows what to fix first. Each shift gets a score:

layout shift score = impact fraction x distance fraction

  • Impact fraction: how much of the viewport the moving elements affect, across the two frames, as a share of the total viewport area.
  • Distance fraction: the greatest distance any moving element travelled, divided by the viewport’s largest dimension (width or height, whichever is greater).

A big element that moves far scores high. A small one that moves a few pixels scores low. So a late banner pushing the page down hurts more than a tiny icon nudging sideways.

Session windows

CLS used to add up every shift on the page. Now it uses session windows. A session window is a burst of shifts with less than one second between each shift and a maximum of five seconds for the whole window. Your reported CLS is the window with the highest total score.

So a long-lived page is not punished for a lifetime of tiny shifts. Only the worst burst counts.

What is not counted

Shifts that happen within 500 milliseconds of a user input are excluded. If you click a menu and it expands, that is expected movement. Web.dev notes this applies to discrete inputs such as taps, clicks and key presses. Scrolling, dragging and pinch-zoom do not count as input.

There is a catch. If a request takes longer than 500 ms and the content jumps in afterwards, that shift is counted. So “load more” buttons that fetch slowly can still hurt you.

What Is CLS Caused By? Common Causes of Layout Shift

Once you know what is CLS and how it is scored, the causes are easy to spot. Most trace back to a short list.

  1. Images, video and iframes without dimensions. The browser reserves no space, so content below jumps when the file arrives.
  2. Web fonts swapping. Text renders in a fallback font, then re-flows when the web font loads and has different letter widths and line heights.
  3. Ads and third-party embeds. Ad sizes and widgets often are not known until they load.
  4. Late-injected content. Cookie bars, promo banners, newsletter bars and “related” boxes inserted above existing content push everything down.
  5. Animations that change layout properties. Animating top, left or box-shadow forces re-layout.
  6. Lazy-loading mistakes. A lazy-loaded hero image, or lazy media with no dimensions.

How to Find Layout Shifts on Your Site (and See What Is CLS Reporting)

Start with real-user data, then use lab tools to find the exact element.

1. PageSpeed Insights

Enter a URL at PageSpeed Insights. The top section shows field data from the Chrome UX Report (CrUX), which is real-user data collected over 28 days. The lower section is a Lighthouse lab test. Compare CLS in both, then open the “Avoid large layout shifts” audit to see which elements moved.

2. Search Console Core Web Vitals report

In Google Search Console, open Experience, then Core Web Vitals. It groups URLs by status and flags “CLS issue: more than 0.1” or “more than 0.25” for mobile and desktop. If your report says you failed, see our post on why a Core Web Vitals assessment fails on WordPress.

3. Chrome DevTools Performance panel

Open DevTools, go to Performance, record a page load and look at the Experience track. Layout Shift entries are shown as red marks. Click one to see which nodes moved and by how much. In the main-thread view you can also tick “Layout Shift Regions” in the rendering options to highlight shifting areas on the page as they happen.

4. Web Vitals extension

The Web Vitals Chrome extension shows your CLS live as you browse, including shifts that happen after scrolling. It is the quickest way to catch late banners.

Lab data vs field data

What is CLS in a lab test versus what real users see? They often disagree. Web.dev explains why: lab tests mostly capture shifts above the fold and during load, while field data covers the whole page lifetime. Lazy-loaded images without dimensions may only shift when real users scroll. Personalized ads and A/B tests may not appear in a lab run.

Treat field data as the verdict and lab data as the debugger.

7 Easy Fixes for Cumulative Layout Shift

Now that you know what is CLS and where it comes from, here are the fixes. They match the guidance in web.dev’s optimize CLS article, with WordPress steps added.

Fix 1: Set width and height on every image and video

This is the first thing to check when asking what is CLS doing to my page.

When an image has width and height attributes, modern browsers use them to work out the aspect ratio before the file downloads. Then the space is reserved.

<img src="hero.jpg" width="1200" height="675" alt="Team at work">

Add img { height: auto; max-width: 100%; } in CSS so it still scales.

WordPress steps:

  • Insert images from the Media Library, not by pasting external URLs. The block editor then outputs the dimensions.
  • Check your theme templates and page-builder widgets. Custom HTML, hard-coded <img> tags and some slider plugins drop the attributes.
  • Give every responsive srcset candidate the same aspect ratio, so one width and height pair stays correct.

Fix 2: Use CSS aspect-ratio for media you do not control

What is CLS caused by most often on embeds? Missing space. Some elements have no intrinsic size, such as video embeds, maps and containers that load content later. Reserve the space with aspect-ratio.

.video-embed { width: 100%; aspect-ratio: 16 / 9; }

In WordPress, add this under Appearance, Customize, Additional CSS. Target the wrapper class your embed block outputs. For images, keep the attributes and treat aspect-ratio as the fallback.

Fix 3: Load fonts without a visible swap

Text is the most common hidden shift on content sites. You have three options, which work best together.

  • Use font-display: optional so a web font is used only if it is ready at first layout. This avoids a re-layout.
  • Preload critical fonts so they arrive earlier:
<link rel="preload" href="/fonts/brand-sans.woff2" as="font" type="font/woff2" crossorigin>
  • Match the fallback font. CSS descriptors size-adjust, ascent-override, descent-override and line-gap-override make the fallback take up the same space as the web font. Tune the values by measuring your own fonts, because they differ for every typeface.

Always include a generic family such as sans-serif in your font stack. WordPress steps: in many themes the Typography panel or the Elementor Site Settings font controls decide font loading. Self-host font files where you can, and keep the number of weights low.

If you cannot know the final size, reserve the smallest size you expect.

.ad-slot { min-height: 250px; }

Do not collapse the slot if no ad loads. Removing reserved space also causes a shift, so show a placeholder instead.

For cookie and consent bars, the safest pattern is to overlay: a fixed-position bar at the bottom that does not push content. Check the position setting in your consent plugin. Avoid a bar that loads at the top and moves the whole page down.

Fix 5: Never insert content above existing content

Banners, forms and “recommended” boxes that appear after the page renders push the page around. Web.dev suggests reserving space with a placeholder or skeleton, or overlaying the element so it does not affect the flow.

For “load more” products, let the user trigger it with a button. Shifts within 500 ms of that tap are excluded.

In WordPress, check sticky headers, announcement bars and popup plugins. Set a fixed height for the announcement bar in CSS, so the page does not jump when its script runs.

Fix 6: Animate with transform, not layout properties

Animating top, left, box-shadow or box-sizing triggers layout and can cause shifts. Composited transform animations such as translate and scale do not count toward CLS.

.panel { transition: transform 0.3s; }
.panel.open { transform: translateY(40px); }

Check slide-in menus, accordions and entrance animations in your theme or page builder, and test them in DevTools.

Fix 7: Handle lazy loading above the fold

Lazy loading is good for images far down the page. It is bad for the first screen. A lazy-loaded hero image loads late, which hurts LCP, and one without dimensions also shifts the layout.

WordPress core has improved this. According to the WordPress 6.3 image performance notes, core now avoids adding loading="lazy" to images likely to be in the initial viewport and adds fetchpriority="high" to the image it judges to be the LCP image. Caching and optimization plugins can override this, so check their lazy-load settings and exclude the first one to three images. For the loading side of this, read our guide on how to improve LCP in WordPress.

Also keep pages eligible for the back/forward cache, so restored pages show no repeat load shifts.

Worked Checklist: What Is CLS Asking You to Fix on a WordPress Page?

If any step below is outside your comfort zone, our WordPress speed optimization service covers CLS, LCP and INP work. Otherwise, use this order, from biggest wins to fine-tuning.

  1. Run the URL in PageSpeed Insights. Note field CLS and lab CLS.
  2. Open the “Avoid large layout shifts” audit and write down the listed elements.
  3. Check Search Console Core Web Vitals for the page group and device that fails.
  4. Confirm every image, video and iframe has width and height, or an aspect-ratio wrapper.
  5. Make sure the hero image is not lazy-loaded and has dimensions.
  6. Preload the one or two fonts used above the fold. Add a generic fallback family.
  7. Set min-height on ad slots, embeds and announcement bars.
  8. Move cookie banners to a fixed overlay position.
  9. Replace any layout-property animations with transform.
  10. Re-test with the Web Vitals extension while scrolling the full page.
  11. Clear page cache, then re-test mobile.
  12. Wait for field data. CrUX uses a 28-day window.

For a broader plan beyond CLS, our speed improvement to-do list walks through the rest.

Want Us to Fix Your CLS Score?

Now you know what is CLS and how to fix it. If your Core Web Vitals report shows red for CLS and you would rather hand it over, we can help. We will review your site and tell you what is causing the shifts, free of charge. We can then handle the fixes through our WordPress performance tuning work, or you can use the review to fix it yourself. Send us your URL via the contact page and we will reply with a plain-language summary.

FAQ

What is a good CLS score?

What is CLS good at? Anything of 0.1 or less counts as good. Scores above 0.25 are poor, and anything in between needs improvement. Google evaluates the 75th percentile of page loads, separately for mobile and desktop.

Is CLS a ranking factor?

What is CLS to Google? It is one of the Core Web Vitals used in its page experience signals. It is one signal among many, and strong content still matters most. A poor score also hurts conversions.

Why is my CLS good in the lab but bad in the field?

Lab tests mostly measure shifts above the fold during load. Field data covers the page’s whole life, including shifts after scrolling and personalized ads. Trust field data and debug with lab tools.

What is not counted in CLS?

Shifts within 500 milliseconds of a discrete user input, such as a tap, click or key press, are excluded. Scrolling, dragging and pinch-zoom do not count as input. Animations using transform also do not count.

How do I fix CLS in WordPress?

Once you understand what is CLS, the fix list is short. Add width and height to images and embeds, reserve space for ads and banners, preload fonts and use a close fallback, avoid lazy-loading the hero image, and animate with transform. Then confirm results in PageSpeed Insights and the Search Console report.

What is CLS in plain words?

What is CLS in plain words? It is a score for how much a page’s content jumps around while it loads or while you use it. A page where a button moves just as you tap it has a high CLS. A page where everything stays put has a low one. Google counts 0.1 or less as good.