debug-optimize-lcp

Analyze and optimize Largest Contentful Paint performance using Chrome DevTools MCP workflows.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/sharegpu/gpushare-plugins --skill debug-optimize-lcp-sharegpu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-optimize-lcp
Source: https://github.com/sharegpu/gpushare-plugins/tree/main/plugins/chrome-devtools-mcp/skills/debug-optimize-lcp
Command: npx skills add https://github.com/sharegpu/gpushare-plugins --skill debug-optimize-lcp-sharegpu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Diagnoses and optimizes Largest Contentful Paint (LCP) performance using Chrome DevTools MCP workflows to reduce main content render time.

Core Features & Use Cases

  • Performance tracing and insights to identify LCP bottlenecks using MCP.
  • Bottleneck identification across TTFB, resource load delay, resource load duration, and render delay with actionable guidance.
  • Remediation guidance including preloading, avoiding lazy loading for LCP, inlining critical CSS, and SSR to accelerate hero content.
  • Use Case: When a page's hero image or main content drags, this skill guides you through measurement and fixes to improve perceived load speed.

Quick Start

Record a performance trace on your target page and follow the LCP optimization steps to improve render speed.

Frequently Asked Questions about debug-optimize-lcp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a slow Largest Contentful Paint using Chrome DevTools?

To debug a slow Largest Contentful Paint (LCP), record a performance trace in Chrome DevTools and analyze the LCP insights to identify the LCP element. Then inspect the network waterfall and audit the HTML to pinpoint specific bottlenecks.

Why does my hero image drag down Largest Contentful Paint time?

Your hero image drags down Largest Contentful Paint time due to resource load delay or render delay. Common causes include not prioritizing the image, lazy loading the LCP element, or render-blocking CSS preventing the browser from painting the hero content quickly.

What is the best way to optimize Largest Contentful Paint for web vitals?

The best way to optimize Largest Contentful Paint is to preload hero resources, avoid lazy loading for LCP elements, inline critical CSS, and use Server-Side Rendering (SSR). These techniques minimize TTFB and resource load delays to accelerate main content render.

Can I use Chrome DevTools to identify which element is causing LCP issues?

Yes, you can use Chrome DevTools to identify the exact element causing LCP issues. By recording a performance trace and analyzing the LCP insights, the workflow highlights the specific Largest Contentful Paint element and its associated network requests.

When should I not lazy load images to improve LCP?

You should not lazy load images when the specific image is identified as the Largest Contentful Paint (LCP) element. Lazy loading the LCP element delays its download and rendering, significantly increasing the time it takes for the main hero content to appear.