Przejdź do treści
NowośćPytania o produkt: klienci pytają na karcie produktu i dostają Twoje odpowiedzi.Zobacz, jak to działa
IdukkiIdukki
Metrics

CLS (Cumulative Layout Shift)

C-L-S

What is CLS?

Cumulative Layout Shift scores how much a page jumps around while it loads. Google rates 0.1 or less as good. A widget that loads without reserved space pushes content down and raises the score.

How CLS is measured

The browser watches for visible elements that move after they first appear. Each move scores by how much of the screen shifted and how far. CLS reports the largest burst of shifts during the visit.

Shifts within half a second of a tap or click do not count. The shopper caused those, so they expect them.

Keeping galleries from shifting the page

A gallery that loads late can push the text below it down the screen. A shopper about to tap Add to cart taps the wrong thing.

The fix is to reserve the gallery's space before it loads. Set a fixed height or aspect ratio on its container. Then the page stays still when the photos arrive.

Other common causes

Images with no width and height set are the usual cause. So are web fonts that swap in late and change line lengths.

Banners and cookie notices that push content down add to it. Overlay them instead, or reserve their space from the start.

0.1

or less is a good CLS score, measured at the 75th percentile of page loads.

Source: web.dev, Web Vitals

With Idukki

Widget speed test

Test how a gallery widget affects your page's load and layout.

Read more on this

See it working on a live store.

Real storefronts using the thing this page defines.