UX Robot guide

Avoid large layout shifts: find what moves and fix it

Avoid large layout shifts, explained: what Lighthouse measures, how to find what moves and fix it, with real examples from USA Today, weather.com and Macy’s.

By the UX Robot teamUpdated 15 minute read

If PageSpeed Insights or Lighthouse told you to “Avoid large layout shifts”, it saw parts of your page move after they had appeared: a headline sliding down, a button jumping just as someone reached for it. This guide explains how to avoid large layout shifts: what the warning and its newer partner, Layout shift culprits, measure, how Cumulative Layout Shift is scored, how to find the element that moves and how to fix the usual causes. The examples are real: UX Robot page audits of the USA Today, weather.com and Macy’s home pages on a phone on December 3, 2026.

In short

  • A layout shift is visible content moving without the visitor asking it to. Cumulative Layout Shift (CLS) adds up the worst burst of those moves into one score.
  • A good score is 0.1 or less for three in four visits; above 0.25 is poor. CLS carries 25% of the Lighthouse performance score.
  • The usual causes are content inserted above what people are reading, images and ads without reserved space, web fonts that swap, and animations that move the layout.
  • On weather.com the advertisement slot above the header opened in two steps and pushed the whole page down 100 pixels. On USA Today a late search box pushed the lead story down 82 pixels.
  • The fix is almost always the same idea: reserve the space before the content arrives, and never insert anything above what people are already looking at.

What “Avoid large layout shifts” means

It means Lighthouse recorded visible elements changing position while the page loaded, without anyone tapping or typing. It lists the largest of those moves, the element that moved most in each, and the likely cause, so you know where to start.

In the weather.com audit, Lighthouse showed the warning as “3 layout shifts found” and described it like this: “These are the largest layout shifts observed on the page. Each table item represents a single layout shift, and shows the element that shifted the most.” Below each item it lists possible root causes, such as an image without a size or a font that loaded late.

Newer versions of Lighthouse and PageSpeed Insights also show an insight called Layout shift culprits, and on weather.com both appeared side by side. Google’s documentation for the insight, published on October 8, 2025, says “Layout shifts occur when elements move their position despite the absence of user interaction.” It passes when the page has a good Cumulative Layout Shift of 0.1 or better, and names four common culprits: unsized images, injected iframes such as ads, unoptimized animations, and web fonts that flash unstyled or invisible text before they load.

Neither entry changes your score by itself. Google’s scoring documentation says “only metrics contribute to your Lighthouse Performance score, not the results of Opportunities or Diagnostics.” The metric behind them, Cumulative Layout Shift, does count: it carries 25% of the performance score, the same weight as Largest Contentful Paint.

How cumulative layout shift is scored

Each move gets a score from how much of the screen moved and how far it moved. Moves less than a second apart are grouped, and the page’s CLS is the worst group. A good page stays at 0.1 or less for at least three in four visits.

Google’s guide to Cumulative Layout Shift defines it as “a measure of the largest burst of layout shift scores for every unexpected layout shift that occurs during the entire lifecycle of a page.” Three details explain most of the numbers you will see:

  1. Each shift is area times distanceThe score for one move is the impact fraction multiplied by the distance fraction. The impact fraction is the share of the screen covered by the moving elements before and after the move. The distance fraction is how far they moved, divided by the screen’s larger side. On a 390 by 844 phone, a block that fills most of the screen and drops 82 pixels scores far more than a small badge that slides a few pixels.
  2. Shifts are grouped into windowsMoves with less than one second between them, in a window of at most five seconds, are added together. The page’s CLS is the window with the highest total, not the sum of every move on the page.
  3. Moves you cause do not countShifts within 500 milliseconds of a tap, click or key press are flagged as expected and left out, so opening an accordion is fine. Scrolling is not an input, so content that jumps while someone scrolls still counts.

The thresholds are the same everywhere Google reports CLS: 0.1 or less is good and above 0.25 is poor, judged at the 75th percentile of real page loads, separately for phones and computers. Lighthouse in the lab only sees the page loading once on a simulated phone. Real visitors also scroll, wait and come back, so their score can be higher or lower than the lab’s.

Cumulative Layout Shift thresholds
  • Stability (CLS)How much the layout moves
Green is good, amber needs improvement and red is poor, for 75% of real visits. The thresholds are Google’s.

Most websites now pass. The performance chapter of the HTTP Archive Web Almanac 2024, published on November 11, 2024, found 79% of websites had good CLS on phones and 72% on computers, up from 60% and 54% in 2020. That is good news, and it is also why a page that still jumps stands out to the people using it.

79% Websites with good CLS on phones in 2024 (Web Almanac).
72% Websites with good CLS on computers in 2024.
25% Weight of CLS in the Lighthouse performance score.
500 ms Shifts this soon after a tap or key press are not counted.

Real examples: USA Today, weather.com and Macy’s

Two of the three pages moved in front of us: USA Today’s lead story dropped 82 pixels when a search box loaded above it, and weather.com’s whole page dropped 100 pixels when an advertisement opened above its header. Macy’s stayed almost still, although Lighthouse still flagged images without a size.

We ran UX Robot page audits of the USA Today, weather.com and Macy’s home pages on a 390 by 844 pixel phone screen, signed out. Each audit measures the page with Lighthouse on UX Robot’s server and reads Chrome’s field data from real visits between November 4 and December 1, 2026. Our own agent checked each page in a real browser with a layout shift recorder running from the first moment, and saved screenshots before and after each move. The screenshots below are the audits’ own, with the moved elements marked. All three pages do a great deal right, the moves are what we saw on one day, and the pages may have changed since.

USA Today: a search box that arrives late

1.2 seconds: ready to readMeasured
USA Today's home page on a phone on December 3, 2026, 1.2 seconds after opening, with the lead story marked directly under the Today's Headlines label
The lead story starts 214 pixels from the top, under Today’s Headlines.
2.5 seconds: 82 pixels lowerMeasured
The same USA Today home page 2.5 seconds after opening, with the newly loaded Ask USA TODAY anything box marked above Today's Headlines and the lead story marked 82 pixels lower than before
The Ask USA TODAY box loads above the headlines and pushes everything below it down.

About 2.1 seconds after the page opened, the “Ask USA TODAY anything” box was inserted between the top advertisement and Today’s Headlines with no space kept for it. The label, the lead headline and its photo all moved 82 pixels down at once. Our recorder scored that single move at 0.073, and Lighthouse measured the page’s CLS at 0.074 on UX Robot’s server, just inside the good range. The audit rated it a medium usability issue: anyone who has started reading the headline, or is reaching to tap it, loses their place. Chrome’s field data puts the home page at 0.08 for three in four phone visits, also good, yet 7.1% of phone page loads scored above 0.1. The fix is to give the box’s container its final height in the page’s first HTML, so the headlines start where they will stay.

weather.com: an advertisement that opens in two steps

4.1 seconds: looks readyMeasured
weather.com on a phone on December 3, 2026, 4.1 seconds after opening, with the header marked at the very top of the screen above the Today, Hourly, 10 Day and Monthly tabs and a temperature of 71 degrees
The header, the forecast tabs and the current temperature are all in place.
7 seconds: 100 pixels lowerMeasured
The same weather.com page 7 seconds after opening, with a newly loaded advertisement marked at the top and the header marked 100 pixels lower than before
An advertisement opens above the header and the whole page moves down.

weather.com answers its visitors’ question at once: the temperature, conditions, high and low and chance of rain fill the first screen. Our test browser was in Australia, so the site showed its forecast for Melbourne. Then, at about 4.2 seconds and again at 5.8 seconds, the advertisement slot above the header opened in two steps, each time pushing the header, the forecast tabs and everything below 50 pixels down. The recorder scored the two moves at 0.058 and 0.054. Because they were more than a second apart they fell into separate windows, which is why neither alone looks dramatic. Lighthouse on UX Robot’s server, which loads the American edition, measured 0.143 and listed “3 layout shifts found”, with Layout shift culprits failing beside it.

Real visits agree. Chrome’s field data puts weather.com’s home page at 0.13 for three in four phone visits, in the needs improvement range, with only 66.5% of phone page loads scoring good. The audit also found a sticky advertisement covering the Forecast, Video and Radar bar at the bottom of the screen, hiding the focused link from keyboard users. Both problems have the same fix: decide how much room each advertisement gets and hold that room from the start.

Phone page loads with CLS above 0.1, Chrome field data
  • weather.com home page33.5%
  • USA Today home page7.1%
  • Macy’s home page4.6%
From the Chrome UX Report for each home page on phones, November 4 to December 1, 2026, read in UX Robot’s page audits. The 75th percentile was 0.13 for weather.com, 0.08 for USA Today and 0.00 for Macy’s.

Macy’s: steady, with a warning worth reading

Macy’s home page shows what good looks like. Its hero image carries width and height attributes, so the browser keeps its space before the picture arrives, and Lighthouse measured CLS at 0.003. Lighthouse still reported “Image elements do not have explicit width and height” for five images. Our recorder showed what that costs: two images at the bottom of the first screen grew from 78 to 229 pixels tall as they loaded, a move scored at 0.005. It is tiny because they sat at the edge of the screen, but the same images higher up would move everything below them. Treat the warning as a list of places where a shift can happen, and fix them before a redesign moves them up the page.

How to find what moves on your page

Start with the elements Lighthouse names under Avoid large layout shifts and Layout shift culprits, then watch the page load in Chrome DevTools to see what pushed them. The element that moved is usually not the cause: look just above it for what appeared or grew.

  1. Read the Lighthouse entriesRun PageSpeed Insights on a phone setting and open Avoid large layout shifts. Each row names the element that shifted most and, below it, possible root causes such as an unsized image or a web font.
  2. Record the load in the Performance panelIn Chrome DevTools, open Performance, turn on a slow network and CPU, and record a reload. The Layout shifts track marks each move; selecting one highlights the elements that moved on the screenshot strip.
  3. Look above the element that movedOn USA Today the headline moved, but the cause was the search box inserted above it. On weather.com the header moved because the advertisement above it grew.
  4. Log shifts while you scrollLighthouse stops when the page has loaded. Paste a small observer into the Console, below, then scroll and wait, as a visitor would.
  5. Check the field dataThe Core Web Vitals section at the top of PageSpeed Insights, and the Core Web Vitals report in Search Console, show whether real visitors see the problem.

This snippet prints every shift with its score and the elements that moved. Paste it into the Console before you reload, or run it on a page that is already open and then scroll:

new PerformanceObserver((list) => {
  for (const entry of list.getEntries()) {
    if (entry.hadRecentInput) continue;
    console.log(entry.value.toFixed(3), Math.round(entry.startTime) + ' ms',
      entry.sources.map((source) => source.node));
  }
}).observe({ type: 'layout-shift', buffered: true });

How to fix the usual causes: a CLS fix for each

Reserve space for anything that loads late: give images and videos their size, give ad and embed slots a minimum height, and render banners and widgets in the page’s first HTML instead of inserting them above existing content. Then tame fonts and animations.

Google’s guide to optimizing CLS, last updated on February 7, 2025, lists the most common causes as images without dimensions, ads, embeds and iframes without dimensions, dynamically injected content, and web fonts. The table pairs each with its fix and with what we saw on the three home pages.

Causes of layout shifts and their fixes
CauseWhat visitors seeThe fix
Content inserted above what people are readingHeadlines or buttons jump down, as on USA Today.Render it in the first HTML, or reserve its height with min-height before it loads.
Ads, embeds and iframes without a set sizeThe page drops when the slot fills, as on weather.com.Give each slot the height of its most likely ad, and keep the space even when no ad comes.
Images and videos without a sizeText below an image moves as the picture arrives.Set width and height, or CSS aspect-ratio, on every image and video.
Web fonts that swap inLines rewrap and paragraphs change height.Preload the main font and match the fallback’s size so the swap barely moves anything.
Animations of size or positionElements next to an animated one are pushed around.Animate transform and opacity instead of top, height or margin.

Reserve space for late content and ads

Both big moves we saw were late content landing above what people were reading. The fix is an empty box with the right height in the page’s first HTML. For an advertisement slot, pick the most common height for that position; if a taller ad sometimes arrives, a small move at the bottom of the slot is better than the whole page dropping. Collapsing an empty slot later causes a shift too, so keep the space or show a house message in it.

<!-- Before: the slot is empty until the ad script fills it -->
<div id="top-ad"></div>

<!-- After: the slot keeps its height from the first paint -->
<div id="top-ad" class="ad-slot"></div>

<style>
  .ad-slot { min-height: 100px; }
  @media (min-width: 768px) { .ad-slot { min-height: 250px; } }
</style>

The same goes for consent notices, app banners, promotions and search or chat widgets. Show them in a space that already exists, or overlay them at the bottom of the screen where they do not push content, rather than inserting them at the top after the page has drawn.

Image elements do not have explicit width and height

This Lighthouse diagnostic lists images without a size the browser can use before they download. Add the image’s real width and height as attributes, in pixels, and keep your responsive CSS; the browser works out the shape from the two numbers and reserves the right amount of space at any width:

<img src="/img/gift-guide-800.webp" alt="Gift guide: the best gifts for everyone"
     width="800" height="1088" loading="lazy">

<style>
  img { max-width: 100%; height: auto; }
  .card-media { aspect-ratio: 3 / 4; }   /* for images set as backgrounds */
</style>

Our guide to serving images in next-gen formats covers the rest of image delivery: format, srcset and sizes. Give every picture that carries meaning alt text too; how to add alt text explains what to write.

Fonts and animations

When a web font replaces its fallback, lines can rewrap. Preload the font used for headings and body text, and choose a fallback of similar width, or adjust it with the size-adjust and ascent-override descriptors so the swap is barely visible. For animations, Google’s documentation on non-composited animations explains that they “can also increase the Cumulative Layout Shift (CLS) of your page since they result in actual movement of elements”, while animations of transform and opacity are left out of CLS.

A checklist to avoid large layout shifts

Most layout shifts come from a handful of template decisions, so check the templates rather than individual pages. Use this list when you build a page, add an advertisement slot or install a widget.

Before content loads

  • Every img, video and iframe has width and height, or a CSS aspect-ratio.
  • Every advertisement and embed slot has a min-height in the first HTML.
  • Banners, promotions and widgets are rendered on the server, or overlay the bottom of the screen.
  • The main fonts are preloaded and the fallback is a close match.

While people use the page

  • Nothing is inserted above the part of the page someone is reading, unless they asked for it.
  • Loading more results adds them below, with an empty box of the right height while they load.
  • Animations use transform and opacity.
  • Sticky advertisements and bars never cover the page’s own navigation or buttons.

The back and forward buttons matter too. Google’s guide to optimizing CLS notes that keeping pages eligible for the browser’s back/forward cache is a highly effective way to keep CLS low, because a page restored from that cache appears exactly as it was left.

How to check the fix worked for visitors

Run Lighthouse on a phone setting several times before and after, and confirm the shifts are gone from Avoid large layout shifts. Then watch the field data for four weeks, because CLS from real visits includes the moves that happen while people scroll.

Lab runs vary on pages with advertisements, because each load can bring a different ad. Compare several runs, and run the Console snippet above while scrolling to catch moves Lighthouse never sees. The Chrome UX Report covers the previous 28 days, so the field figure will improve gradually. Our guide to a good landing page experience explains how CLS sits beside loading and responsiveness in Google’s Core Web Vitals, and Reduce unused JavaScript covers the scripts that often insert late content in the first place.

This is where UX Robot helps. A page audit, like the three behind this guide, measures the page with Lighthouse and the Chrome UX Report and has your own AI agent check it in a real browser, with screenshots of each problem, its severity and the fix, beside the page’s accessibility, usability and search problems. The Free plan covers five page audits a month and Pro makes them unlimited. Enterprise audits whole journeys with your GA4, Search Console and Clarity data, sends issues to your tracker and reruns them on a schedule, so you can see the fix hold. Compare the plans.

Questions about layout shifts

What is Cumulative Layout Shift (CLS)?

It is Google’s measure of how much visible content moves unexpectedly on a page. Each move is scored by how much of the screen moved and how far, moves less than a second apart are grouped, and the worst group is the page’s CLS.

What is a good CLS score?

0.1 or less for at least 75% of page loads, measured separately on phones and computers. Between 0.1 and 0.25 needs improvement, and above 0.25 is poor.

What is the difference between Avoid large layout shifts and Layout shift culprits?

Avoid large layout shifts lists the biggest moves Lighthouse saw and the element that moved most in each. Layout shift culprits is the newer insight that points to the likely causes, such as unsized images, injected iframes, animations and web fonts. On weather.com both appeared together.

Why is my CLS good in Lighthouse but poor in the field?

Lighthouse loads the page once and stops. Real visitors scroll, wait for advertisements and stay longer, so shifts that happen after loading only show in field data. Run the Console snippet while scrolling to find them.

Does CLS affect search rankings?

CLS is one of Google’s Core Web Vitals, which Google uses as part of page experience. Content that answers the search matters far more, but a page that jumps is a worse experience for the people who arrive from search.

Where do the USA Today, weather.com and Macy’s figures come from?

From UX Robot page audits of each home page on a 390 by 844 pixel phone screen on December 3, 2026: Lighthouse on UX Robot’s server, Chrome UX Report field data for November 4 to December 1, 2026, and a layout shift recorder in our agent’s browser, which was in Australia. The pages may have changed since.

Sources

  1. Cumulative Layout Shift (CLS), web.dev.
  2. Optimize Cumulative Layout Shift, web.dev, last updated February 7, 2025.
  3. Layout shift culprits, Chrome for Developers, published October 8, 2025.
  4. Avoid non-composited animations, Chrome for Developers.
  5. Lighthouse performance scoring, Chrome for Developers.
  6. Performance, Web Almanac 2024, HTTP Archive, published November 11, 2024.
  7. UX Robot page audits of the USA Today, weather.com and Macy’s home pages, mobile, December 3, 2026, with Chrome UX Report field data for November 4 to December 1, 2026.

Put this guide to work

Check your own page in about a minute.

Type your page’s address and UX Robot shows how fast it is for real visitors, how accessible it is and what search engines see, free and without signing up.

Then your own AI agent can audit the whole page for usability and WCAG 2.2, five pages a month on the free plan. See the plans

How does your page do?

Check it free