SEO

CLS

Also called Cumulative Layout Shift

The Core Web Vital that scores unexpected movement of content while a page loads, from images, ads and late fonts.

Quick facts: CLS

Category
SEO
Also called
Cumulative Layout Shift
Level
Intermediate
Affects
Mis-taps, conversion rate, Core Web Vitals assessment, mobile usability
Where to see it
PageSpeed Insights, Chrome DevTools Performance panel, Search Console Core Web Vitals report
In this article4
  1. What CLS measures
  2. Why CLS matters
  3. Common mistakes with CLS
  4. How to act on it

What CLS measures

When the browser paints something on screen and then moves it, that movement is a layout shift. The reader did not ask for it, so it counts against the page. CLS adds those shifts up across the whole time someone is on the page, and scores each one by how much of the screen moved and how far it travelled. A small notice sliding a long way and a large block nudging slightly can end up scoring much the same.

Movement that follows a tap or a click within a moment is excluded, because the visitor caused it. Everything else counts: an image arriving with no space reserved for it, an advert slot expanding, a consent bar pushing the article down, a web font swapping in at a different size. The result is a ratio rather than a time, and lower is better.

Why CLS matters

It is one of the Core Web Vitals Google reports, so it feeds the page experience signals. That is the smaller part of the argument. The larger part is that a page which moves loses money directly: a thumb aiming at “Add to basket” lands on “Remove”, or a tap meant for a phone number opens an advert instead. Most Nepali traffic is mobile, on connections where images and scripts arrive late and unevenly, which is exactly when shifts happen.

Layout stability is also the one speed problem a client can see without a tool. That makes it easy to get agreement on fixing, and embarrassing to leave alone.

Common mistakes with CLS

Most of the damage comes from images and videos published without width and height attributes, leaving the browser no way to reserve a gap of the right shape before the file arrives. Close behind is anything JavaScript inserts above content that is already visible — consent bars, promotional strips, personalised greetings, chat widgets that push the page rather than float over it.

The other mistake is trusting a single lab test. A synthetic run loads the page and stops, so it only sees shifts during loading. Real visitors scroll, and content that loads as they scroll can shift too. When a lab score looks clean but the field data does not, the movement is happening after the point at which the test ended.

How to act on it

Start from field data, because that is what is graded, then reproduce the worst pages in Chrome’s performance tools, which will name the element that moved. Give images and embeds explicit dimensions or an aspect ratio, reserve a fixed height for any slot filled in later, and load fonts so the fallback is close in size to the final face.

Two habits prevent most repeats. Never insert anything above existing content unless the visitor asked for it, and animate transforms rather than properties that change layout. If the shifts trace back to a theme or a plugin you cannot control, that is a build decision, and page speed work is where it belongs rather than in a content edit.

Do and do not

Do

  • Set width and height on every image and video
  • Reserve space for ads, banners and embedded widgets
  • Pick a fallback font close in size to the real one

Do not

  • Insert banners or notices above content already on screen
  • Judge stability only on a fast desktop connection
  • Animate height or position; animate transform instead

Questions people ask about this

Is a layout shift always a problem?

No. A shift the visitor caused — expanding an accordion, opening a menu, loading more results by tapping a button — is expected and is not counted against the page. What counts is movement nobody asked for, arriving while someone is reading or reaching for a link. If your page only moves in response to a tap, the score stays low.

Why does my CLS look fine in a speed test but poor in Search Console?

A speed test loads the page once on one device and then stops. Search Console reports what real visitors experienced across the whole visit, including shifts that happen while scrolling, on slower connections, and on devices the test never simulated. Treat the test as a debugging tool and the real-user report as the verdict.

Can a cookie banner ruin CLS?

It can, and often does. A banner that appears at the top and pushes the page down creates a shift on every first visit. Overlaying it instead, so it sits above the content without moving anything, removes the problem entirely. The same applies to announcement strips and chat widgets that expand in place.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.