Fix Layout shift culprits in Lighthouse and PageSpeed
What moved while your page loaded, how to check the element Lighthouse blames, and how to fix shifts from images, fonts, ads, bars and late CSS.
Why is Layout shift culprits red in PageSpeed Insights?
Layout shift culprits turns red when the layout shifts during the load add up to a CLS of 0.1 or more: "Layout shifts occur when elements move absent any user interaction." Lighthouse used to call it Avoid large layout shifts. It lists what moved and guesses the cause. Reserve space for what arrives late: a width and height on images, a height on ad slots.
Just want the quick fix? Jump to images, web fonts, ads and embeds or banners.
How do you read the Layout shift culprits table?
Lighthouse records one load of your page on a phone-size screen and lists its layout shifts in bursts (shifts that come within a second of each other), one table per burst. The notice is red when the worst burst scores 0.1 or more, and grey below that. Aim for 0 even when it is grey: a shift under 0.1 still moves the text your visitor is reading.
On a recipe page I built like a WordPress food blog, with a web font headline, a newsletter plugin, an ad under the header and a recipe card plugin, the notice was red with one burst of 0.241.

The recipe page's notice in Lighthouse 13.5, mobile, simulated throttling as in PageSpeed Insights.
- Total is the score of the burst; the worst burst's Total is the CLS Lighthouse reports.
- Element is what moved most in that shift, often a big container such as
<main>. What pushed it usually sits above it. - Layout shift score is that one shift's part of the Total.
- The line under a row is Lighthouse's guess at the cause: "Unsized image element" with the image, or "Web font" with the font file. A row can have both, or neither.
On the recipe page Lighthouse named the wrong image under three of the four shifts: check which element really moved before you change anything.
Why does the page jump while it loads?
Your visitor starts reading and the text slides away, or taps a link and hits whatever moved into its place.
The browser paints the page with what it has. Whatever arrives later with no space waiting for it pushes the content below it away: an image without a size starts at zero height, a web font sets the headline wider than the fallback did. Each move is a layout shift, scored by how much of the screen moved and how far. Shifts less than a second apart form one burst, and CLS is the score of the worst burst, so small shifts close together add up.
On the recipe page each cause stays under 0.1 on its own, and all four come in one burst:
| Cause on the recipe page | CLS on its own | After the fix |
|---|---|---|
| Headline web font | 0.035 | 0 |
| Recipe photo without width and height | 0.036 | 0 |
| Newsletter bar above the header | 0.058 | 0 |
| Ad in an empty slot | 0.054 | 0 |
| All four together | 0.241 | 0 |
All four together score more than the rows add up to, because in the full page the font and the photo each move more of the screen. Fixing all four took the mobile Performance score from 87 to 100, with FCP, LCP and Total Blocking Time unchanged. CLS counts for a quarter of that score, but Google ranks your page on the CLS your real visitors get.

Before, first paint

Before, at 2 seconds

After, first paint

After, at 2 seconds
The recipe page at Lighthouse's phone size. The dashed box is where the photo was at first paint.
Did Lighthouse blame the right element?
Lighthouse guesses the cause from timing: a web font that finished downloading just before the shift, an image the browser painted right after it. So an image that was only pushed can be listed as "Unsized image element". The recipe page's featured image has width="1200" height="675", yet Lighthouse names it under the font's, the newsletter bar's and the ad's shifts. For a row with no line under it, start at step 2.
- Does the named image have a size? "Image elements do not have explicit width and height", under Diagnostics in the same report, lists the images without one. In DevTools, the image's Computed tab shows a ratio for aspect-ratio (auto 1200 / 675) when its space is reserved, and auto alone when it isn't. A sized image didn't cause the shift, unless the theme sets width: auto (Unsized image element below): look at the other line under the row, often "Web font", or go to step 2.
- What appeared at that moment? Record a reload in the Performance panel. Each shift is a purple diamond in the Layout shifts track; hover one for its score and a screenshot of that moment with the moved area marked. On the recipe page the 0.0583 shift shows the green newsletter bar that had just appeared at the top. For shifts during a scroll, click Record, scroll and click Stop.
- Block the suspect and reload. In the Network panel, right-click the request you suspect, such as the font file or the ad tag, choose Block requests, then Block request URL, and record again. A diamond that is gone belonged to that request: blocking the recipe page's font removed one shift and left the other three. Untick the block in the Request conditions drawer afterwards.

Step 2 on the recipe page: Chrome 155, Slow 4G and 4× CPU slowdown.
Without DevTools, cRUM in CoreDash does this check: it puts a Chrome trace of the page next to what your real visitors got, names the element that moved and shows what the visitor did just before. The screenshot below is from a different page: start at Chrome trace and Real users.

CoreDash cRUM for one page on acme-pagespeed.com, mobile.
Which elements shift for your real visitors?
Lighthouse loads your page once, as a first-time visitor, and never scrolls or taps. Your field data holds every real visit, including the ad in the middle of a post that fills when the visitor scrolls to it and the header that shrinks on scroll. When Lighthouse is clean or grey and Search Console says CLS is poor, the shifts usually happen after the load.
In CoreDash, set the device to mobile and group CLS by Attribution Element (CLS) to see which elements moved; Last interaction (CLS), under More dimensions, tells you whether that happened after a scroll. To find what pushed those elements, record that page in the Performance panel while you scroll (step 2 of the check above).

CoreDash on mobile, p75: start with the highest CLS.
How do you fix Layout shift culprits?
Start with the largest shift in the table with the highest Total, once the check above has confirmed its cause.
Unsized image element
An image without a size starts at zero height and pushes everything below it down when it loads. WordPress adds a width and height to images from the media library; images that a theme, page builder, slider or plugin writes itself often lack them, like the recipe card's photo. If you can't change the theme, WP Rocket adds the missing sizes (Media, Add missing image dimensions); in a template you write them yourself:
<img src="shakshuka.jpg" width="800" height="600" alt="Shakshuka in the pan">
img { max-width: 100%; height: auto; } The browser turns the two attributes into a ratio and reserves the right height at any screen width before the file arrives. A width: auto in the theme's CSS cancels that ratio (auto sizing images). On Shopify the image_tag filter adds the size; a theme or app that writes its own <img> needs width="{{ image.width }}" height="{{ image.height }}". In Next.js, next/image needs a width and height, or fill inside a parent with its own size.
Web font
The headline shows first in the fallback font, then in the web font, which is wider or narrower: the lines break at other words and everything below moves. On WordPress (Additional CSS) and Shopify (the theme's stylesheet under Edit code; a theme update can undo that) you add a fallback font face that resizes a local font to the web font's measurements. In Next.js, next/font adds a matching fallback. The recipe page's headline font:
@font-face {
font-family: "Young Serif Fallback";
src: local("Times New Roman"), local("Liberation Serif");
size-adjust: 131%;
ascent-override: 79.85%;
descent-override: 27.94%;
line-gap-override: 0%;
}
h1 { font-family: "Young Serif", "Young Serif Fallback", serif; } A size-adjust of 122% from a calculator still left a CLS of 0.029 there; 131% gave 0. Font display has the Android face, how to get your own numbers, and font-display: optional, which stops the shift and shows first-time visitors the fallback.
Ads, videos and other embeds
An ad script puts its iframe in the slot after the auction; if the slot was empty, everything below drops by the ad's height. According to the State of Web Vitals, 89% of sites without an ad network pass CLS on phones, against 73% of sites with two or more networks. That is a correlation.
In the theme or the ad plugin, give the ad's container the height of the size that shows most often, and make the iframe a block:
.ad-slot { min-height: 50px; }
.ad-slot iframe { display: block; } An iframe sits on the text line by default, so the recipe page's reserved slot still grew 8 pixels until the iframe was a block. Keep the slot open when there is no ad: closing it moves the page as much as filling it. AdSense Auto ads go where Google decides: exclude the areas on the first screen (Ad settings, Excluded areas) and put a manual ad unit in a sized slot there.
YouTube, maps and other embeds are iframes too, and on an iframe the width and height attributes give no ratio: with height: auto it shrinks to about 150 pixels. Give the iframe an aspect-ratio, or use a facade, a sized thumbnail that becomes the iframe on a click (YouTube, Google Maps):
.video-embed iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; } Bars and banners a script inserts
A newsletter bar or a free-shipping strip that a script puts above the header pushes the whole page down.
Start with the plugin's or app's layout setting: a bottom bar, a box or a popup floats over the page and moves nothing. Consent tools such as OneTrust and CookieYes offer the same layouts; Lighthouse sees their banner on every run because it starts without cookies. A bar that has to sit above the header gets its space in the theme, at the height the Computed tab shows at phone width:
<div id="promo-slot" style="min-height: 48px"></div> For a bar that only shows on some visits, let it float, or render it in the HTML on the server. Visible content from a Google Tag Manager tag always arrives after the first paint: move it into the template. On Shopify, an app that injects a widget, such as review stars or an announcement bar, needs a height on the container where its app block goes.
CSS that loads after the first paint
A stylesheet loaded with the media="print" trick, or delayed or loaded asynchronously by an optimisation plugin, arrives after the page is on screen and resizes what is already there: a header that grows pushes everything below it. In the plugin, exclude it from the option that delays CSS or loads it asynchronously; in the theme, load it with a plain <link rel="stylesheet"> in the head.
Animations, sliders and blocks rendered by JavaScript
These usually come from the theme, a plugin or an app: look there for a setting. With none, send a developer the element the report names and the code below.
An animation of top, left, height or margin moves the layout in every frame. Lighthouse lists it as several small rows without a cause line, and "Avoid non-composited animations" under Diagnostics names the element. Animate transform instead: it moves the element's pixels and nothing around it, so the browser counts no layout shift.
.promo { position: fixed; top: 0; left: 0; right: 0;
transform: translateY(-100%); transition: transform .3s; }
.promo.is-open { transform: translateY(0); } A slider shows its slides stacked until its script runs; keep it at its first slide until the script adds its ready class (use your slider's own):
.slider:not(.is-ready) > :not(:first-child) { display: none; } A block that JavaScript renders after the load, such as reviews or related products, needs an empty container at its final height, or rendering on the server. For animations on scroll, see scroll-triggered animations and CSS transitions.
Shifts from code you can't edit
You can't change what an ad creative, an app without a layout setting or a vendor's script inserts. Reserve the height it usually takes, place it below the first screen, or replace it with one that stays in its space.
Did the changes bring CLS to 0?
Check the fix in Lighthouse on mobile, with your caching plugin and CDN cleared. With every shift gone, Layout shift culprits shows as passed and CLS is 0. A Performance panel recording, once with a reload and once while you scroll, has an empty Layout shifts track. CoreDash shows the new CLS per element from the next visits on; Search Console takes up to 28 days.

Before

After
Before and after the four fixes: Lighthouse 13.5, mobile, simulated throttling.
Some shifts come from places you can't open: an ad slot your ad partner fills, an app that injects its widget, a shift only real visitors see after they scroll. In a Core Web Vitals power hour we go through them in your field data and a recording of your page, and decide which container gets which height.

Need a faster site?
I'm Arjen, and I've been fixing slow sites for 17 years. If you're running into issues you can't fix yourself, send me your URL and let's have a chat.
Send me your URL
Why isn't our fix working?
Sometimes the CDN still serves the old HTML, or the fix went into the desktop template and mobile uses another one. Send me your URL and the problem, and I reply with a few times. I check your field data first, then we spend one hour on your site, and within a day you have my notes in writing. €350 excl. VAT.
Send me your URLNo developer to build the fix? I do the work myself, on a copy of your site.