Core Web Vitals Guide

Core Web Vitals are Google's metrics for measuring real-world user experience. They directly impact Search ranking since 2021.

LCP
Largest Contentful Paint โ€” Loading Performance
โ‰ค 2.5s
Good
โ‰ค 4.0s
Needs Improvement
> 4.0s
Poor
Optimization Tips:
  • Use fetchpriority="high" on hero images
  • Preload LCP image with <link rel="preload">
  • Use a CDN to reduce server response time
  • Remove render-blocking resources
  • Use modern image formats (WebP, AVIF)
INP
Interaction to Next Paint โ€” Interactivity (replaced FID in 2024)
โ‰ค 200ms
Good
โ‰ค 500ms
Needs Improvement
> 500ms
Poor
Optimization Tips:
  • Break up long tasks using scheduler.yield() or setTimeout
  • Reduce JavaScript execution time
  • Defer non-critical third-party scripts
  • Use web workers for heavy computation
CLS
Cumulative Layout Shift โ€” Visual Stability
โ‰ค 0.1
Good
โ‰ค 0.25
Needs Improvement
> 0.25
Poor
Optimization Tips:
  • Always set explicit width and height on images/videos
  • Reserve space for ads and embeds
  • Avoid inserting content above existing content
  • Use font-display: optional or preload web fonts
  • Use CSS transform for animations instead of layout properties