Skip to content
Diamond Sierra

PB-2807: Page jumps around while loading (poor CLS)

Paul Bunyan code PB-2807 (Warning): Page jumps around while loading (poor CLS). What it means and what to do.

Updated · By Diamond Sierra

On this page

What it means

Content shifted on screen after it first appeared, by more than Google's limit of 0.25.

What to do

Give every image, video, advert and embed a width and height (or a reserved space). Avoid inserting banners above existing content, and preload web fonts so text does not reflow.

Common causes

  • Images, videos, ads or embeds without a width and height, so space appears only when they load.
  • Banners, cookie notices or announcement bars inserted above content that is already showing.
  • Web fonts that swap in with a different size, so text reflows.

How to find and fix it

  1. Give every image, video, ad and embed a width and height, or reserve the space with CSS (aspect-ratio).
  2. Show notices as overlays or reserve their space, instead of pushing content down.
  3. Preload web fonts and pick a fallback font of similar size.

Details

CodeSeverityGroup
PB-2807WarningBrowser