Trakis

Trakis · Rules

Layout shifts while loading (CLS)

Cumulative Layout Shift from PageSpeed, one page per template: above 0.1 is flagged, above 0.25 is what Google calls poor. The sentence says whether it is real visitors’ number or a lab test’s. Things that move while the page loads make people click the wrong thing. Google calls up to 0.1 good and above 0.25 poor, at the 75th percentile of visits; CLS is one of its three Core Web Vitals.

WarningPERF-005 · Performance · checked on every page

Cumulative Layout Shift (CLS): where the shifts come from, and the fix

Updated 17 October 2026.

Cumulative Layout Shift, CLS, measures how much a page moves under the reader: the button that jumps as an image arrives above it, the paragraph pushed down by a banner. It is one of Google’s three Core Web Vitals.

How it is measured (web.dev):

  • Each unexpected shift gets a score from how much of the screen moved and how far. Shifts close together form a burst, and CLS is the largest burst of the visit.
  • 0.1 or less is good, above 0.25 is poor, read at the 75th percentile of visits, phones and computers apart.
  • A shift within half a second of a click, a tap or a key press is expected, and not counted: the page is answering.
  • Lab tools see only the shifts while the page loads. Real visitors also get the ones that come later, as they scroll and late content arrives, so a lab number can only be lower.

What Google Search says. Its Core Web Vitals page says good Core Web Vitals align with what its core ranking systems seek to reward. It does not say how much they weigh against what a page says.

Where shifts come from, and the fix for each (web.dev):

  • Images and video without dimensions. The browser does not know their size until they arrive, so it leaves no room. Always give them width and height; the browser keeps the proportion when CSS resizes them.
  • Ads, embeds and widgets that take their size late. Reserve their space in the layout, and know that taking reserved space away shifts the page as much as adding it.
  • Content inserted above what is there: a cookie bar, a promotion strip, a “related” block. Reserve the space, place it lower, or show it only after a click.
  • Web fonts that arrive after the text was drawn in a fallback of another size. font-display: optional uses the font only if it is there in time; size-adjust brings the fallback to the same size; preloading the one or two fonts that matter brings them sooner.
  • Animations that change size or position: use transform, which moves an element without moving the others.
<img src="/img/boots.jpg" width="480" height="320" alt="…">

img { max-width: 100%; height: auto; }   /* keeps 480:320 */

.ad-slot { min-height: 250px; }          /* the space, before the ad */

Ours, as it is. trakis.io’s rules index and the demo shop’s product page both measured a CLS of 0 in PageSpeed’s lab on 17 October 2026. The demo’s product image declares its size, width="480" height="320"; trakis.io has no images on its public pages and no banner above the content. Neither has enough visitors for field data, so a lab 0 is all we can say: it does not see what happens after the page has loaded.

Check it yourself. PageSpeed Insights shows real visitors’ CLS when there are enough of them; when it is much higher than the lab’s, the shifts come after the load. In Chrome’s developer tools, the Performance panel marks each layout shift and the elements that moved. Images without dimensions are also an audit check of their own, PERF-001.

How the audit decides.

  • It asks PageSpeed, for phones, about one page per template and applies the answer to the template’s other pages.
  • Above 0.1 is PERF-005, a warning, and the sentence says whether the number is the page’s real visitors’ or a lab test’s; above 0.25, that it is in the range Google calls poor. Until 17 October 2026 both read alike.
  • A page with only the whole site’s field data is measured in the lab, since the site’s number is not the page’s.
  • It runs only when the audit includes PageSpeed. Loading speed is PERF-003; response to clicks, PERF-006.

Sources, read on 17 October 2026: web.dev, Cumulative Layout Shift (CLS) · web.dev, Optimize Cumulative Layout Shift · Google Search Central, Understanding Core Web Vitals and Google search results.

How common it is

Our study of 330 small sites, read from Common Crawl’s October 2026 archive, could not measure this check: no PageSpeed measurement.

Where it usually comes from

Images and embeds without dimensions, banners and cookie bars inserted above the content, ads that resize themselves, and web fonts that swap for a different size.

This check needs speed measured by Google PageSpeed. It runs only when that measurement is part of the audit; without it, the audit leaves it out rather than guess.

How to fix it

  • Give images, videos and embeds a width and height, or an aspect-ratio.
  • Reserve the space for banners and late widgets instead of inserting them above the content.
  • Load fonts with font-display: optional or preload them.

How to check it yourself

Run the page through PageSpeed Insights and read Cumulative Layout Shift in the field data; the lab value counts only the shifts during load.

What it looks like in a report

Warning CLS in a lab test: 0.24, above the 0.1 threshold. Things move while the page loads; a lab load sees only those shifts, not the ones while people scroll. · /product/*

The product image has no dimensions and the reviews widget loads late, pushing the price down. (An example shop; the numbers are illustrative.)

How the audit counts it

PERF-005 is a warning in the performance category, and weighs moderately in that category’s score. When it appears on many pages built from the same template, the report shows it once, with the number of pages it covers — because one change in the template fixes all of them.

If the finding is deliberate on your site, it can be accepted as intentional in the report. It then leaves the list and the score, and comes back on its own if what it shows changes.

Other performance checks

Find it on your site

A free Trakis audit runs this check and the other 66 on your site, and tells you on how many pages each one sits. Or go back to all the rules.