Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

Measuring CLS and LCP

Two numbers that tell how a page feels: Cumulative Layout Shift (target 0.05 or less) and Largest Contentful Paint; what causes bad values in Exponential designs and how to measure them in the browser.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/theme-design/measuring-cls-and-lcp.md

On this page

Measuring CLS and LCP

This page is for designers who check how a page loads. Cumulative Layout Shift (CLS) measures how much content jumps while the page loads; Largest Contentful Paint (LCP) measures when the biggest visible element (usually the main image or heading) is drawn.

Contents

  1. Targets
  2. What causes layout shift
  3. What delays the largest paint
  4. How to measure

Targets

  • CLS at most 0.05: the target the project uses for its own pages (stricter than the commonly cited 0.1).
  • LCP as early as possible; a common goal is under 2.5 seconds on a mid-range phone.

What causes layout shift

CauseFix
images without width and heightprint the alias's width and height, or set aspect-ratio
web fonts swapping with very different metricsa fallback stack close to the web font; few weights
banners and consent bars pushed in above contentoverlay them (fixed position) or reserve their space
embeds (videos, maps) without a boxa placeholder with the final aspect ratio, as the media design's video consent placeholder does
a theme set after the first paintset it in the head before stylesheets (The theme toggle and the pre-paint guard)
side columns that open after scripts rundraw the remembered state from the first paint (admin4 uses a a4-preload class until its column script has run)

What delays the largest paint

  • the main image loaded lazily or in a size far larger than shown;
  • render-blocking scripts in the head;
  • many stylesheets or third-party font CSS before any text can be drawn;
  • a slow server response: an uncached full view with many fetches (Fetch performance).

How to measure

  1. Open the page in a private window, signed out.
  2. Developer tools, Performance or Lighthouse panel: record a page load; read CLS and LCP and the elements behind them.
  3. Repeat at 375 px (phone emulation, throttled network) and at 1440 px.
  4. Repeat after clearing the caches once: the first visitor after a publish gets the slow path.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x