Skip to content

Page jumps while loading (layout shift)

Parts of the page move after they first appear: an image, banner or embed loads late and pushes the content below it down.

Why it matters

People lose their place, or tap the wrong thing when a button moves under their finger. Google counts how much a page moves for real visitors, Cumulative Layout Shift (CLS), as one of its three Core Web Vitals.

How to fix it

  1. Give every image and video its width and height, or a fixed shape such as 3:2, so its space is kept before it loads.
  2. Keep room for banners, embeds and ads that arrive late, or show them below the content instead of above it.
On Wix
  1. Move ads, such as Google AdSense, from the top of the page to below the fold.

Wix help: Site Performance: About Core Web Vitals (opens in a new tab)

On Webflow
  1. Select the container around an embed, map or video and, in Style panel › Size, give it a height, minimum height or aspect ratio.
  2. Give sections that a script fills in late, such as reviews or a social feed, a minimum height in the same way.

Webflow help: Prevent layout shifts (opens in a new tab)

In code (HTML, CSS or Tailwind)
  1. Set width and height on every <img> and <video>, or give its box an aspect-ratio (Tailwind: aspect-3/2). With a fluid width, keep height: auto in the CSS.
    <img src="photo.webp" width="1200" height="800" alt="…">

MDN: aspect-ratio (opens in a new tab)

Check your fix

Once the change is live, check the page again.

Want it done for you?

We’re a product design studio. We can make this fix, and check the rest of your site while we’re at it.

Book a call (opens in a new tab)