Reduce CLS WordPress - Find What Moves and Make It Stay Put (2026)
Cumulative Layout Shift measures how much your page jumps around while people use it. It's the Core Web Vital most often caused by small, fixable things, like an image without dimensions or an ad slot without reserved space.
What CLS Measures
A layout shift happens when visible content moves without the visitor causing it, such as text jumping down when an image or ad loads above it. CLS adds up the size of these unexpected shifts, focusing on the largest burst of shifts during the visit.
A good CLS is 0.1 or less at the 75th percentile of visits. Between 0.1 and 0.25 needs improvement, and above 0.25 is poor.
Shifts caused directly by a visitor's action, like opening an accordion they clicked, don't count against you, as long as they happen right after the interaction.
Find What's Shifting
Check field data
Search Console's Core Web Vitals report and PageSpeed Insights show whether real users experience poor CLS.
Look at Layout shift culprits
In PageSpeed Insights, this insight lists the elements that shifted during the lab test.
Use Chrome DevTools
The Performance panel highlights layout shifts; you can also enable layout shift regions in the rendering tools to see shifts flash on screen.
Scroll and interact
Field CLS includes shifts after loading, so scroll the page, wait for ads and banners, and watch for movement.
Test on mobile
Shifts are more noticeable on small screens.
Remember that lab CLS only covers loading. If field CLS is poor but the lab shows zero, the shifts probably happen later, from ads, lazy-loaded embeds or banners.
Common Causes and Fixes
| Cause | What Happens | Fix |
|---|---|---|
| Images without width and height | Space appears only after the image loads, pushing text down | Add dimensions; WP Rocket's Add missing image dimensions does this automatically |
| Ads and ad slots | Ads load late and expand | Reserve a fixed-size container for each slot |
| Embeds (YouTube, social posts, maps) | Embeds expand after loading | Use fixed aspect-ratio containers or preview images |
| Web fonts | Text reflows when the custom font replaces the fallback | Preload key fonts, self-host fonts, use size-matched fallbacks |
| Cookie and consent banners | Banners push content down | Overlay the banner instead of inserting it into the page flow |
| Notification bars and popups | Bars insert above content | Reserve space or overlay them |
| Content injected by JavaScript | Related posts, reviews or widgets appear late | Reserve space or load below the fold |
| Sliders and carousels | Height changes as slides load | Set a fixed height for the slider area |
| Lazy-loaded content without placeholders | Content appears with no reserved space | Use placeholders with set dimensions |
| CSS loaded late | Styles apply after content renders | Load critical CSS first; avoid late style changes |
Fixing Images
Every image needs width and height attributes so the browser can reserve the right space before the image downloads. Modern CSS then keeps the aspect ratio responsive.
WordPress adds dimensions to images inserted through the editor, but themes, page builders and plugins sometimes output images without them. WP Rocket's Add missing image dimensions setting fills them in automatically. See adding image dimensions.
Fixing Ads
Ads are the biggest CLS challenge for publishers. Ad networks often fill slots with different sizes, and ads arrive after the content.
- Give each ad slot a container with a minimum height matching its most common ad size.
- Avoid placing ads at the very top of the content where shifts affect everything below.
- Don't collapse empty ad slots in a way that moves content.
- Check your ad network's settings for layout shift protection.
See speeding up WordPress with ads.
Fixing Fonts
When a custom font loads after the page shows text in a fallback font, the text can change size and reflow. That causes small shifts across the page.
- Self-host Google Fonts so they load from your domain sooner. WP Rocket's Self-host Google Fonts option does this. See self-hosting Google Fonts.
- Preload the font files used above the fold.
- Limit font files to the weights and styles you actually use.
- Use size-adjusted fallbacks so the fallback font takes up similar space.
Fixing Embeds and Banners
YouTube videos, social posts and maps often load as small boxes that expand. Wrap them in containers with a fixed aspect ratio, or use a preview image that's replaced on click. WP Rocket's option to replace YouTube iframes with a preview image helps here. See lazy loading YouTube videos.
For cookie banners and notification bars, choose a style that overlays the page rather than pushing content down. Many consent plugins have a floating or bottom-bar option.
CLS From Themes and Page Builders
Some layout shifts come from the theme itself:
- Headers that change size after scripts load, for example a sticky header that shrinks or a logo that loads without dimensions.
- Mobile menus that render open, then collapse when JavaScript runs.
- Animations that move elements using properties like top or margin instead of transform.
- Font icon libraries that show placeholder squares before the icon font loads.
Check your theme's and builder's performance settings; many have options to reduce entrance animations or load icons as SVGs. Animations that use CSS transforms don't count as layout shifts.
CLS and Remove Unused CSS
If CSS optimization removes styles that set an element's size, that element may render at the wrong size and then jump when full styles load. If you see shifts after enabling Remove Unused CSS or Load CSS Asynchronously, add the affected selectors to the safelist so their size is set from the start. See fixing broken layouts.
Quick CLS Checklist
- Every image and iframe has width and height, or a fixed aspect ratio.
- Ad slots have reserved, fixed-size containers.
- Consent banners and notification bars overlay content instead of pushing it.
- Fonts are self-hosted, limited and preloaded where they appear above the fold.
- Embeds use preview images or fixed containers.
- Sliders have a fixed height.
- Nothing is inserted above existing content after load.
CLS and Lazy Loading
Lazy loading itself doesn't cause CLS if images have dimensions, because the browser still reserves their space. Problems appear when lazy-loaded elements, like background images, embeds or JavaScript widgets, have no reserved space.
Also make sure your top-of-page image isn't lazy loaded. That doesn't usually cause CLS, but it does hurt LCP. See lazy loading images.
A Worked Example: A News Site's CLS
A news site fails CLS on mobile in field data, while the lab test shows almost no shift. Scrolling a typical article on a phone reveals the problem: in-article ad slots expand as ads load, and a newsletter bar slides in above the header after a few seconds.
The team sets minimum heights on ad containers matching the most common ad sizes and changes the newsletter bar to overlay the bottom of the screen. Field CLS moves into the good range over the following weeks.
Reduce CLS WordPress FAQ
What is a good CLS score?
0.1 or less at the 75th percentile of real visits.
Why does PageSpeed Insights show low CLS but Search Console says it's poor?
Lab tests only measure loading. Real visitors scroll and stay longer, so shifts from ads, embeds and banners appear in field data.
Do images without dimensions cause CLS?
Yes. The browser can't reserve space, so content moves when the image loads. Adding width and height fixes it.
Can a caching plugin fix CLS?
Partly. WP Rocket adds missing image dimensions, self-hosts Google Fonts and replaces YouTube embeds with previews. Ads and banners need layout changes.