Skip to content
Back to skills

Cumulative Layout Shift

ASecurity

Use when auditing slow page loads, heavy assets, or rendering delays related to Minimize cumulative layout shift. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

  • 74,358 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 5, 2026
developmentrustgofrontendperformance

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 5, 2026

npx -y skills add thedaviddias/Front-End-Checklist --skill cumulative-layout-shift --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cumulative Layout Shift?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cumulative Layout Shift
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thedaviddias-cumulative-layout-shift/badge)](https://www.skillsdirectory.com/skills/thedaviddias-cumulative-layout-shift)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cumulative-layout-shift
description: "Use when auditing slow page loads, heavy assets, or rendering delays related to Minimize cumulative layout shift. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes."
metadata:
  category: performance
  priority: high
  difficulty: intermediate
  estimatedTime: "20"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/performance/cumulative-layout-shift
---

# Minimize cumulative layout shift

Layout shifts cause accidental clicks, reading disruption, and user frustration—a good CLS score ensures content stays where users expect it.

## Quick Reference

- CLS measures visual stability—target score below 0.1
- Always set width/height on images and embeds
- Reserve space for ads, banners, and dynamic content
- Use transform animations instead of layout-changing properties

## Check

Measure CLS using Lighthouse or PageSpeed Insights. Verify score is below 0.1 for good visual stability.

## Fix

Reserve space for images/embeds with dimensions, use font-display strategies, and avoid injecting content above existing content.

## Explain

Explain how CLS measures visual stability and why unexpected layout shifts frustrate users and cause accidental clicks.

## Code Review

Review the routes, assets, and loading behavior that affect Minimize cumulative layout shift. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.

---

For full implementation details, code examples, and framework-specific guidance,
see `references/rule.md`.

Rule page: https://frontendchecklist.io/rules/performance/cumulative-layout-shift

Files in this skill

  • SKILL.md1.7 KB
  • references/rule.md5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…