Skip to main content
SlapMyWeb
Technical SEO

CLS (Cumulative Layout Shift)

Measures how much the page content shifts unexpectedly while loading. Target: under 0.1.

Cumulative Layout Shift (CLS) measures how much a page's content jumps around while it loads. It is one of Google's Core Web Vitals, and a good score is 0.1 or less. Most shift comes from images and ads without reserved dimensions, or from web fonts swapping in — both fixable by declaring size up front.

Definition

CLS measures the total of all unexpected layout shifts that occur during a page's lifecycle. A layout shift happens when a visible element changes its position after it has been rendered — like when an ad loads and pushes content down.

Target: under 0.1. The score is calculated as: impact fraction x distance fraction.

Why It Matters

Layout shifts are infuriating for users — you are about to click a button and suddenly an ad pushes it down, causing a misclick. CLS directly impacts user experience and is a Google ranking signal.

Example

Common CLS causes: images without width/height attributes, dynamically injected ads, web fonts causing FOUT. Fix: always set explicit dimensions on images and embeds, use font-display: swap with size-adjusted fallback fonts.

Why the score is cumulative

CLS is not the size of the worst shift; it is the sum of shift scores across the page's lifetime, where each score multiplies how much of the viewport moved by how far it moved.

That has a practical consequence: many small shifts can score worse than one large one, and shifts that happen after load — a lazy-loaded image arriving, an ad slot filling, a cookie banner appearing — count just as much as those during the initial render. Anything that moves content after the visitor can see it is a candidate.

The shifts that do not count

A shift within 500 milliseconds of a user interaction is excluded, on the reasoning that a person who clicked something expects the page to change. This is why an accordion expanding or a menu opening does not hurt the score.

It also means the fix for some shifts is to tie them to an interaction rather than to eliminate them. Content that must appear late is far less damaging if it appears because someone asked for it.

How SlapMyWeb checks this

The audit records layout shifts during load and reports the cumulative score alongside the elements that moved. The most common finding by a wide margin is an image or iframe without width and height, which is why the audit checks dimensions on every image it finds rather than only measuring the outcome. The matching fix guide is how to fix a high Cumulative Layout Shift.

Related Tools

Know the term.
Check your own site.

A free audit tells you whether this is currently costing you score points — and exactly what to change.

Run a free audit
Free foreverNo signupResults in 30s