How to Fix Cumulative Layout Shift on a Small Website
You go to tap "Read more" on your own homepage, the page jumps as an image loads, and you hit an ad instead. That jolt has a name: cumulative layout shift, or CLS.

You go to tap "Read more" on your own homepage, the page jumps as an image loads, and you hit an ad instead. That jolt has a name: cumulative layout shift, or CLS. Google measures it on real visitors' phones, reports it in Search Console, and counts it as one of the three Core Web Vitals.
The good news is that CLS is usually the easiest of the three to fix on a small site. Most of the problem comes from four or five predictable causes, and each has a short, specific fix. Here is how I find and remove them on client sites, without rebuilding anything.
What Cumulative Layout Shift Measures
CLS scores how much visible content moves unexpectedly while the page is open. Each shift is scored by how much of the screen moved and how far it travelled. The browser groups shifts that happen close together into windows of up to five seconds, and your CLS is the score of the worst window.
| CLS score | Rating |
|---|---|
| 0.1 or less | Good |
| 0.1 to 0.25 | Needs improvement |
| Above 0.25 | Poor |
Two details matter. Shifts that happen within half a second of a click or tap are not counted, because the user expected something to change. And Google judges you on the 75th percentile of real visits, so a fast desktop test can look fine while mobile users on slow connections see a mess.
How to Find Layout Shifts on Your Pages
Start with data, not guesses. Three free tools cover almost everything:
- PageSpeed Insights: enter a URL and look at both the field data (real users) and the lab score. Under diagnostics, "Avoid large layout shifts" lists the elements that moved. If the report feels overwhelming, our guide on how to read a PageSpeed Insights report explains each section.
- Search Console: the Core Web Vitals report groups URLs with the same problem, so you can fix a template once instead of page by page.
- Chrome DevTools: open the Performance panel, enable screenshots, reload with network throttling set to a slow 4G profile, and look for the layout shift markers. Clicking one highlights the element that moved.
Note the culprits in a simple list: element, page template, rough score. You will usually find the same two or three repeat across the whole site.
Fix 1: Give Every Image and Video a Size
The most common cause by far is an image with no width and height. The browser does not know how tall it will be, lays out the text, then shoves everything down when the image arrives.
The fix is to add the real dimensions to the image tag, next to its usual source and alt text:
<img width="1200" height="675" alt="Team photo">
Modern browsers use those numbers to reserve the correct aspect ratio, even when CSS makes the image responsive with width: 100%; height: auto. For video and iframe embeds, wrap them in a container with aspect-ratio: 16 / 9. While you are editing images, it is a good moment to shrink them too, as we cover in how to compress images for a faster website.
Fix 2: Reserve Space for Ads, Embeds and Banners
Anything injected after the page loads, such as ad slots, newsletter bars, social embeds or cookie notices, pushes content around unless you hold space for it.
- Ads: set a
min-heighton the ad container that matches the most common ad size for that slot, for example 250 px for a medium rectangle. - Cookie banners: position them fixed at the bottom of the screen so they overlay content instead of pushing it.
- Announcement bars: include them in the HTML from the start, or show them below the fold.
- Embeds: give the wrapper a fixed height or aspect ratio before the third party script runs.
An empty reserved box is far less annoying than a jump. Visitors barely notice a blank space that fills in.
Watch your own scripts too. A "related posts" block, a review widget or a lazy-loaded comment section that appears above existing content will shift the page just like an ad. Either load it below the main article, where it pushes nothing the reader is looking at, or render a placeholder of the same height in the HTML so the final content simply drops into place. On WordPress, plugins that inject boxes at the top of posts are a frequent cause worth checking first.
Fix 3: Stop Web Fonts From Reflowing Text
When a custom font loads late, text first renders in a fallback font, then swaps. If the two fonts have different widths, lines rewrap and paragraphs grow or shrink, moving everything below.
Practical font fixes
- Preload the one or two font files used above the fold with
<link rel="preload" as="font" crossorigin>. - Choose a fallback system font with similar proportions, and use
size-adjustin an@font-facerule to match its width. - Limit yourself to two families and a few weights. Every extra file is another chance for a late swap.
Self-hosting fonts on your own domain usually makes them arrive sooner than loading them from a separate service.
Fix 4: Animate Without Moving the Layout
Sliders, accordions and "sticky" headers that change height can all register as layout shifts. Animations built with properties like top, margin or height move the actual layout. Animations built with transform and opacity do not.
If a header shrinks on scroll, keep its outer container the same height and scale the logo inside with transform: scale(). For carousels, set a fixed height on the slider so each slide replaces the last in exactly the same space.
Checking That the Fix Worked
Lab tools like Lighthouse update immediately, so rerun PageSpeed Insights after each change to confirm the shift is gone. Field data is slower. Search Console and the real-user section of PageSpeed Insights use a rolling 28 days of visits, so expect to wait about four weeks before the rating changes. In Search Console you can click "Validate fix" to start the monitoring. More guides on speed and stability live in the performance section.
Layout Shift FAQ
What is a good cumulative layout shift score?
A good CLS score is 0.1 or less, measured at the 75th percentile of real page visits. Scores above 0.25 are rated poor by Google.
Does CLS affect SEO rankings?
Yes, CLS is part of Core Web Vitals, which Google uses as one ranking signal among many. It rarely outweighs content relevance, but a poor score can tip close competitions and frustrates visitors.
Why is my CLS fine in Lighthouse but poor in Search Console?
Lighthouse only measures the initial page load in a lab, while Search Console uses real visitors who scroll, accept cookie banners and load ads. Shifts that happen after load only show up in the field data.
The Takeaway
Size your images, reserve space for anything that loads late, tame your fonts and animate with transform. Those four fixes clear most cumulative layout shift problems on a small website in an afternoon, and your visitors will stop tapping the wrong thing.
More in Performance
Performance
How to Fix a Slow Interaction to Next Paint Score
A client rang me in October because the booking form on her site felt broken on phones. Nothing was broken.
Performance
How to Load Web Fonts Faster on a Small Website
A small business site I looked at last month scored 94 on PageSpeed for desktop and 61 on mobile.
Performance
How to Reduce Server Response Time on a Small Website
You compressed every image, removed the slider and switched to a lighter theme, yet your speed report still shows a red warning...