# Core Web Vitals Optimization Core Web Vitals are Google's standardized performance metrics that measure real user experience. They directly impact search ranking and correlate strongly with user engagement, conversion rates, and bounce rates. ## Table of Contents 1. [The Three Core Web Vitals](#the-three-core-web-vitals) 2. [LCP: Largest Contentful Paint](#lcp-largest-contentful-paint) 3. [INP: Interaction to Next Paint](#inp-interaction-to-next-paint) 4. [CLS: Cumulative Layout Shift](#cls-cumulative-layout-shift) 5. [Measuring Core Web Vitals](#measuring-core-web-vitals) 6. [Performance Budgets](#performance-budgets) 7. [Debugging Workflow](#debugging-workflow) 8. [Quick Reference: Optimization Impact](#quick-reference-optimization-impact) --- ## The Three Core Web Vitals | Metric | Measures | Good | Needs Improvement | Poor | |--------|----------|------|-------------------|------| | **LCP** (Largest Contentful Paint) | Loading performance | < 2.5s | 2.5s - 4.0s | > 4.0s | | **INP** (Interaction to Next Paint) | Interactivity | < 200ms | 200ms - 500ms | > 500ms | | **CLS** (Cumulative Layout Shift) | Visual stability | < 0.1 | 0.1 - 0.25 | > 0.25 | ### Supporting metrics | Metric | Measures | Target | |--------|----------|--------| | **TTFB** (Time to First Byte) | Server responsiveness | < 800ms | | **FCP** (First Contentful Paint) | Initial render speed | < 1.8s | | **TBT** (Total Blocking Time) | Main thread availability (lab proxy for INP) | < 200ms | ## LCP: Largest Contentful Paint LCP measures when the largest visible content element finishes rendering. This is what users perceive as "the page has loaded." ### What counts as the LCP element - `` elements (including those inside ``) - `