Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
thedaviddias avatar

Cumulative Layout Shift

  • 1 installs
  • 73.4k repo stars
  • Updated June 18, 2026
  • thedaviddias/frontendchecklist

Measures CLS and reserves space for images, embeds, and dynamic content to keep the layout visually stable below 0.1.

About

A frontend-checklist performance rule for minimizing Cumulative Layout Shift. A developer uses it when shifting content causes misclicks and reading disruption.

  • Set width/height on images and reserve space for dynamic content
  • Target a CLS score below 0.1

Cumulative Layout Shift by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #1,914 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/thedaviddias/frontendchecklist --skill cumulative-layout-shift

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars73.4k
Last updatedJune 18, 2026
Repositorythedaviddias/frontendchecklist

What it does

Measures CLS and reserves space for images, embeds, and dynamic content to keep the layout visually stable below 0.1.

Files

SKILL.mdMarkdownGitHub ↗

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/en/rules/performance/cumulative-layout-shift

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.