On this page
What this issue is
Cumulative Layout Shift (CLS) is one of Google's Core Web Vitals. It adds up every unexpected movement of visible elements during a page's life. Each shift is scored by how much of the screen moved and how far. Google's thresholds are: 0.1 or lower is good, 0.1 to 0.25 needs improvement, and above 0.25 is poor.
Why it costs you leads or sales
Layout shift hits people at the exact moment they act. A button jumps down as someone taps it, so they hit the wrong thing. A form field moves while they type. The headline they were reading slides off screen. Visitors lose trust, and some leave.
- Page starts loadingText and button appear
- Late content arrivesImage or banner has no reserved space
- Button jumpsVisitor taps the wrong element
- Form submittedNever happens for that visitor
The page looks fine at first, then content above the button loads late and pushes it down.
The content above the button grows after load, so the button is no longer where the visitor aimed.
How to check if your site has it
Test the real step in PageSpeed Insights
Enter the URL of the funnel step at pagespeed.web.dev. Look at CLS under both Mobile and Desktop. If the page has enough traffic, you see field data (real visitors) as well as lab data (a simulated load).
Open Chrome DevTools
Press F12, open the Performance panel, tick Screenshots, and record a page load. The Layout Shifts row in the Experience track marks each shift. Click one to see which elements moved.
Highlight shifts live
In DevTools open the Rendering tab (from the three-dot menu, More tools) and tick Layout Shift Regions. Blue flashes show what moves as you reload.
Test on a throttled mobile profile
Set the device to a phone and network throttling to Fast 4G or Slow 4G. Slow loads expose shifts that a fast office connection hides.
Test each step and state
Check the page with the cookie banner showing, after a form error, and after a promo bar appears. Shifts often come from these states, not from the plain page.
| Cause | What you see | Fix |
|---|---|---|
| Images without width and height | Text below jumps down when the image loads | Add width and height attributes or CSS aspect-ratio |
| Banner or bar injected after load | Whole page pushed down | Reserve its height or overlay it |
| Embeds and widgets | Video or review box grows late | Set a fixed-height container |
| Web font swap | Text reflows when the font arrives | Preload the font and use a matched fallback |
| Late scripts such as chat or A/B tools | Elements move or get replaced | Reserve space, load earlier or load as overlay |
How to fix it
The principle is the same everywhere: tell the browser how much space something will need before it arrives. Then nothing has to be pushed around.
Give every image a size
Add width and height attributes matching the image's real dimensions, or set a CSS aspect-ratio. The browser then reserves the right box before the file downloads.
Reserve space for banners and bars
If a cookie notice or announcement bar appears at the top, give its container a fixed min-height from the first paint, or show it as an overlay at the bottom of the screen.
Wrap embeds in a fixed box
Put videos, maps, review widgets and booking embeds in a container with a set height or aspect-ratio.
Stabilise fonts
Preload your main font file and use font-display: swap with a fallback font of similar size, so text does not reflow much when the real font loads.
Never insert content above what the visitor is reading
Add new content below the viewport, or in space you already reserved. Animations should use transform, not properties like top or height.
<img src="/hero.jpg" width="1200" height="675" alt="Product in use" style="max-width:100%;height:auto;">.review-widget {
min-height: 320px;
}
.video-embed {
aspect-ratio: 16 / 9;
width: 100%;
}<link rel="preload" href="/fonts/brand.woff2" as="font" type="font/woff2" crossorigin>Check image sizes
Recent WordPress versions add width and height to images in the media library automatically. Images hard-coded in a theme or page builder may not have them, so edit those templates.
Review plugins that inject content
Disable cookie, popup, chat and promo-bar plugins one at a time on a staging copy and re-test CLS to find the culprit.
Add CSS
Put min-height rules in Appearance > Customize > Additional CSS.
Use sized images in the theme
In Liquid, use the image_tag filter, which outputs width and height. Check custom sections for plain img tags without them.
Review apps
Reviews, upsell and announcement apps often inject late. Switch each off in turn and re-test the product and cart pages.
Reserve space in theme CSS
Add min-height rules in your theme's CSS file through Online Store > Themes > Edit code.
Find tags that inject HTML
Look for Custom HTML tags that add banners, widgets or popups. Preview mode helps you see when they fire.
Change how they display
Make injected elements overlays or place them in a container with reserved height.
Set image dimensions
Webflow adds width and height to images uploaded through the Designer in most cases. Check images in custom embeds.
Fix embed boxes
Put embeds inside a div with a set height or aspect-ratio in the Style panel.
Size images and sections
Set explicit heights on image elements and sections in the funnel builder, and avoid elements that load later such as unsized video or calendar embeds.
Add custom CSS
Use the page's custom CSS setting to add min-height to embeds.
Avoid late-loading elements
Wix places elements at fixed positions, so shifts usually come from apps, banners or fonts. Remove or re-test each app on the page.
Use fewer font families
Limit custom fonts in the Site Design panel to cut text reflow.
Check the announcement bar
If the bar appears after load, test with it disabled in Pages > Website Tools to see whether CLS drops.
Add CSS
Use Website > Custom CSS to reserve space for embeds and code blocks.
Audit your templates
Add width, height or aspect-ratio to every image, iframe and video in your templates.
Reserve space for JavaScript-built UI
If a script builds a component, render a placeholder of the same size in the HTML first.
Before
- Image has no width or height
- Headline and form sit at the top, then drop when the image loads
- CLS above 0.1
After
- Image has width, height and aspect-ratio
- Headline and form stay where they first appeared
- CLS at or below 0.1
Example: illustrative scores for one landing page, not real measurements.
How to confirm it's fixed
- Re-run PageSpeed Insights on the step for mobile and desktop and check CLS is 0.1 or lower
- Record the page again in DevTools and confirm no large entries in the Layout Shifts row
- Test with the cookie banner, promo bar and chat widget showing
- Test on a throttled mobile connection
- Tap the main button right after load and confirm it does not move
- Remember field data updates slowly, because it averages real visits over about 28 days
How to prevent it happening again
Layout shift tends to come back when someone adds a plugin, an app, a new banner or a new embed. Make the CLS check part of the release routine.
- Test CLS on the funnel step after adding any app, tag, widget or banner
- Require width and height on every new image
- Give each embed a fixed-size container
- Keep a short list of who can add scripts through your tag manager
- Monitor key steps on a schedule so a regression is caught within days
Day 1
A new promo bar is added through a plugin. It loads after the page.
Day 2
Visitors on slow phones see the form jump. Nobody on the team notices on a fast laptop.
Day 7
A scheduled check reports CLS above budget on the landing page.
Day 8
Space is reserved for the bar and CLS returns under 0.1.
How FunnelGuard handles this
FunnelGuard detects this issue today. Its CLS check (a Core Web Vitals budget check) runs as part of the scheduled visit to your funnel step, measuring layout shift while the robot visitor loads the page. If the score goes over the budget, you get a failure. As with other failures, it is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.
Questions people ask
What is a good CLS score?
Google rates a CLS of 0.1 or lower as good. Between 0.1 and 0.25 needs improvement, and above 0.25 is poor. Google judges this at the 75th percentile of real visits.
Why is my CLS high on mobile but fine on desktop?
Phones have slower processors and networks, so images, fonts and scripts arrive later and shift content more. Narrow screens also make a single late element move a bigger share of the viewport. Test with a mobile profile and network throttling in DevTools.
How do I find which element is causing layout shift?
Open Chrome DevTools, record a page load in the Performance panel and look at the Layout Shifts entries in the Experience track. Click an entry to see the elements that moved. The Rendering tab's Layout Shift Regions option also highlights moving areas live.
Does CLS affect conversions and SEO?
Yes, in two ways. Shifting content can make visitors mis-tap or lose their place, which hurts forms and checkouts. CLS is also a Core Web Vitals metric used as one of Google's page experience signals.
Why does my cookie banner cause layout shift?
If the banner is added to the page after load and pushes content down, everything below moves. Reserve its height from the first paint or show it as an overlay at the bottom of the screen so it does not push content.
How do I fix CLS caused by images?
Add width and height attributes that match the image's real dimensions, or set a CSS aspect-ratio. The browser then holds the right amount of space before the image downloads, so the text below does not move.
How long until my CLS improves in Google's reports?
Lab tools such as PageSpeed Insights update right away after you re-test. Field data, such as the Core Web Vitals report in Search Console, is based on about 28 days of real visits, so it improves gradually.
Can FunnelGuard monitor CLS on my funnel?
Yes. FunnelGuard runs a CLS budget check as part of its scheduled visits to a funnel step and alerts you after a second-region re-check if the score is over budget. It is a simulated load, so use it alongside your real-user data.
Related issues
- PRF-026Cookie banner pushes content down, CLS 0.3Fix guide
- PRF-027Promo/announcement bar injected at top after loadFix guide
- PRF-029Embeds (YouTube, Instagram, reviews widget) resize after loadFix guide
- PRF-031Images without dimensions shift text below themFix guide
- PRF-033Form fields shift as validation messages appear above themFix guide
- PRF-038CTA moves just as user taps it (mis-click onto other element)Fix guide