Guides › Hosting, domain & email › Speed & performance

CLS Layout Shifts From Fonts, Images and Ads: Practical Fixes

Reserve space.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Slow website

Cumulative Layout Shift (CLS) measures how much the page jumps while it loads. Late-loading images, fonts, ads and banners are the usual causes. A good score is 0.1 or lower.

1Find the shifting elements2Give images a size3Reserve space for ads and embeds4Fix web font swaps5Do not insert content above existing content6Avoid animations that move layout7RetestFixed? Test the site. If not, get help.
The steps in order. Work down the list and stop when the problem is solved.

Step 1: Find the shifting elements

Illustration for Step 1: Find the shifting elements

In PageSpeed Insights open Avoid large layout shifts. In Chrome DevTools, Performance, tick Layout Shifts to see which element moved and when.

Step 2: Give images a size

Illustration for Step 2: Give images a size

Set width and height attributes on every image so the browser reserves space. In WordPress, images added through the editor usually have them, but theme images may not.

Step 3: Reserve space for ads and embeds

Illustration for Step 3: Reserve space for ads and embeds

Give ad slots, videos and iframes a fixed height or an aspect ratio (aspect-ratio: 16/9).

Step 4: Fix web font swaps

Illustration for Step 4: Fix web font swaps

Use font-display: swap or optional, preload the main font file and pick a fallback font with similar size.

Step 5: Do not insert content above existing content

Illustration for Step 5: Do not insert content above existing content

Banners, cookie bars and notices should overlay or use reserved space, not push the page down.

Step 6: Avoid animations that move layout

Illustration for Step 6: Avoid animations that move layout

Animate transform and opacity instead of top, height or margin.

Step 7: Retest

Illustration for Step 7: Retest

Check again in the field data after about 28 days, since real-user data takes time to update.

Still stuck?

If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-22.