How the score is worked out

Each time something visible moves without the visitor asking for it, the browser scores the shift: the share of the screen affected multiplied by how far the content moved, as a share of the screen. Shifts that happen close together are grouped into a window (a gap of under one second between shifts, five seconds at most), and CLS is the score of the worst window in the whole visit. web.dev’s CLS guide explains the formula.

Shifts within 500 milliseconds of a click, tap or key press do not count, and neither does animation done with CSS transforms.

CLS at the 75th percentile Rating
0.1 or less Good
0.1 to 0.25 Needs improvement
Above 0.25 Poor

Why it matters for client sites

Layout shift is the cause of the wrong button pressed: the visitor taps “Book now” just as a banner pushes it down, and taps “Cancel” instead. On a shop or a booking site that costs orders. It is also one of the three Core Web Vitals Google uses in page experience.

The usual WordPress causes

  • Images without width and height. The browser cannot keep space for them, so text jumps when they arrive. WordPress adds the attributes to images in post content, but themes, page builders and sliders often leave them off.
  • Ads, embeds and iframes with no space kept for them.
  • Cookie and promotion bars added at the top of the page after it has drawn.
  • Web fonts swapping in with different sizes from the fallback font.
  • Late CSS, such as a stylesheet that loads after the page is shown, restyling the header.
  • Content injected by scripts: reviews widgets, “related products”, sticky headers that appear after a delay.

How to fix the common ones

  • Give every image and video width and height attributes, or a CSS aspect-ratio.
  • Keep a fixed-height box for ads and embeds.
  • Show cookie bars as an overlay at the bottom, not a bar that pushes the page down.
  • Preload the main web font and use font-display: swap with a fallback of similar size.
  • Test on a phone while scrolling, not only in a single lab run.

Its limits

CLS counts movement, not quality. A page can score 0 and still be slow (see Largest Contentful Paint) or unresponsive (see Interaction to Next Paint). And because it adds up over the whole visit, a long page can score badly from one late ad far below the first screen.

How Keptstone handles it

Keptstone measures CLS from real visitors on every site and shows the 75th percentile of the last 28 days, on phones and computers, rated by Google’s thresholds. Measuring is in both plans, from $2 a site a month. On Care + Protect + Speed ($4), when phones’ CLS is above 0.1, the speed optimizer recommends its image sizes setting, which adds the missing width and height to the site’s own images. Every speed setting is tried on a private preview first, and a setting that could move the page, such as inlining the first screen’s CSS, is turned down when layout shift rises in Google’s lab test. More fixes: how to improve Core Web Vitals.

Questions

What is a good CLS score?

0.1 or less at the 75th percentile of visits. Between 0.1 and 0.25 needs improvement, and above 0.25 is poor. The score has no unit.

Does movement after a click count toward CLS?

No. Changes within half a second of a click, tap or key press are expected and left out. Opening a menu or an accordion does not hurt the score.

Why is my CLS fine in the lab test but poor for real visitors?

The lab test loads the page once and does not scroll or wait. Real visitors scroll, so ads, embeds and lazy-loaded images further down the page shift content in front of them.