{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-largest-contentful-paint-8e652f633e7a","title":"Optimize Largest Contentful Paint for Performance","summary":"Measure and improve the time it takes for the largest content element to render, enhancing perceived load speed, user experience, and SEO rankings by ensuring it loads within 2.5 seconds.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-largest-contentful-paint-8e652f633e7a","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-largest-contentful-paint-8e652f633e7a","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-largest-contentful-paint-8e652f633e7a.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-largest-contentful-paint-8e652f633e7a\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Verify the largest visible element using Lighthouse or PageSpeed Insights before recommending changes. Preload critical resources and optimize image formats for faster rendering.","instructions":"---\nname: largest-contentful-paint\ndescription: \"Use when auditing slow page loads, heavy assets, or rendering delays related to Optimize largest contentful paint. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.\"\nmetadata:\n  category: performance\n  priority: critical\n  difficulty: intermediate\n  estimatedTime: \"25\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/performance\/largest-contentful-paint\n---\n\n# Optimize largest contentful paint\n\nLCP is the most important Core Web Vital for perceived load speed\u2014it measures when the main content becomes visible, directly impacting user perception and SEO rankings.\n\n## Quick Reference\n\n- LCP measures when the largest element renders\u2014target under 2.5s\n- Use preload for hero images and critical resources\n- Optimize image formats and use responsive sizes\n- Reduce server response time (TTFB)\n\n## Check\n\nMeasure LCP using Lighthouse or PageSpeed Insights. Verify the largest visible element renders within 2.5 seconds.\n\n## Fix\n\nOptimize LCP by preloading critical resources, optimizing images, using CDN, and reducing server response time.\n\n## Explain\n\nExplain how LCP measures perceived load speed by tracking when the largest visible content element becomes visible.\n\n## Code Review\n\nReview the routes, assets, and loading behavior that affect Optimize largest contentful paint. 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\/largest-contentful-paint\n","use_cases":["Auditing slow page loads and identifying rendering delays related to LCP.","Improving SEO rankings by ensuring the largest content element loads within 2.5 seconds.","Enhancing user experience by reducing perceived load time."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/largest-contentful-paint\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:51:09.000000Z","updated_at":"2026-11-23T04:55:22.000000Z","seo_title":"Optimize Largest Contentful Paint for Performance","seo_description":"Improve page load speed by optimizing the time it takes for the largest content element to render, enhancing user experience and SEO rankings.","seo_keywords":["optimize largest contentful paint","improve page load speed","enhance user experience","core web vitals optimization"]}}