New advertisers: 50% off your first month with code FIRSTMONTHSee slots
chromedevtools avatar

Debug Optimize Lcp

Guided debugging and optimization of Largest Contentful Paint using Chrome DevTools MCP tools, with subpart-by-subpart analysis.

skills.sh installs
4.1K
GitHub stars
58.8K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the full LCP workflow: trace recording, insight analysis, LCP element identification, network waterfall checks, and HTML inspection
  • Breaks LCP into four subparts (TTFB, resource load delay, resource load duration, element render delay) and targets the bottleneck first
  • Includes four prioritized fix categories with fetchpriority, rel="preload", lazy-loading, render-blocking, CDN, and caching guidance
  • Designed for developers investigating slow page loads or Core Web Vitals scores, with emulate for testing under throttled network and CPU conditions

Install

$ npx -y skills add chromedevtools/chrome-devtools-mcp --skill debug-optimize-lcp -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

What is LCP and why it matters

Largest Contentful Paint (LCP) measures how quickly a page's main content becomes visible. It's the time from navigation start until the largest image or text block renders in the viewport.

  • Good: 2.5 seconds or less
  • Needs improvement: 2.5–4.0 seconds
  • Poor: greater than 4.0 seconds

LCP is a Core Web Vital that directly affects user experience and search ranking. On 73% of mobile pages, the LCP element is an image.

LCP Subparts Breakdown

Every page's LCP breaks down into four sequential subparts with no gaps or overlaps. Understanding which subpart is the bottleneck is the key to effective optimization.

Details

Repository
github.com/chromedevtools/chrome-devtools-mcp
Categories
Frontend & UI Code, Debugging
First seen
May 16, 2026

More from chromedevtools/chrome-devtools-mcp

All 6

Similar to Debug Optimize Lcp

More Frontend & UI Code