Public BetaVitalSentinel is now live! Read the announcement
Core Web Vitals

What is Cumulative Layout Shift (CLS)?

A Core Web Vital that measures visual stability by quantifying how much page content unexpectedly shifts during loading.

Cumulative Layout Shift (CLS) measures the sum of all individual layout shift scores for every unexpected layout shift that occurs during the entire lifespan of the page.

What causes layout shifts?

Layout shifts occur when visible elements change position from one frame to the next without user interaction. Common causes include:

  • Images without dimensions
  • Ads, embeds, and iframes without dimensions
  • Dynamically injected content
  • Web fonts causing FOIT/FOUT

CLS thresholds

  • Good: 0.1 or less
  • Needs Improvement: Between 0.1 and 0.25
  • Poor: More than 0.25

How CLS is calculated

CLS is calculated by multiplying the impact fraction (how much of the viewport was affected) by the distance fraction (how far the elements moved).

Improving CLS

  1. Always include size attributes on images and videos
  2. Reserve space for ad slots
  3. Avoid inserting content above existing content
  4. Use CSS transforms for animations instead of properties that trigger layout changes

Monitor your website performance

VitalSentinel tracks Core Web Vitals and performance metrics to help you stay ahead of issues.