{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-cumulative-layout-shift-d55fa19452a6","title":"Minimize Cumulative Layout Shift for Visual Stability","summary":"Ensure content stays in place by reducing unexpected layout shifts, achieving a CLS score below 0.1 for improved user experience and visual stability.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-cumulative-layout-shift-d55fa19452a6","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-cumulative-layout-shift-d55fa19452a6","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-cumulative-layout-shift-d55fa19452a6.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-cumulative-layout-shift-d55fa19452a6\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Set width\/height on images and embeds, reserve space for dynamic content, and use transform animations instead of layout-changing properties to achieve a CLS score below 0.1.","instructions":"---\nname: cumulative-layout-shift\ndescription: \"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.\"\nmetadata:\n  category: performance\n  priority: high\n  difficulty: intermediate\n  estimatedTime: \"20\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/performance\/cumulative-layout-shift\n---\n\n# Minimize cumulative layout shift\n\nLayout shifts cause accidental clicks, reading disruption, and user frustration\u2014a good CLS score ensures content stays where users expect it.\n\n## Quick Reference\n\n- CLS measures visual stability\u2014target score below 0.1\n- Always set width\/height on images and embeds\n- Reserve space for ads, banners, and dynamic content\n- Use transform animations instead of layout-changing properties\n\n## Check\n\nMeasure CLS using Lighthouse or PageSpeed Insights. Verify score is below 0.1 for good visual stability.\n\n## Fix\n\nReserve space for images\/embeds with dimensions, use font-display strategies, and avoid injecting content above existing content.\n\n## Explain\n\nExplain how CLS measures visual stability and why unexpected layout shifts frustrate users and cause accidental clicks.\n\n## Code Review\n\nReview 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.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/performance\/cumulative-layout-shift\n","use_cases":["Fix layout shifts caused by dynamically injected content above existing elements.","Optimize images and embeds to prevent unexpected layout changes.","Improve CLS score to meet performance benchmarks for better user engagement."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/cumulative-layout-shift\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T15:46:23.000000Z","updated_at":"2026-11-23T04:54:56.000000Z","seo_title":"Minimize Cumulative Layout Shift for Visual Stability","seo_description":"Ensure content stays in place with CLS optimization. Improve user experience by reducing layout shifts and visual instability.","seo_keywords":["cumulative layout shift optimization","visual stability improvement","CLS score optimization","layout shift prevention","user experience optimization"]}}