Course contentsShow
← React
Lesson 2258 of 2,39649. Performance: Identifying ProblemsFree lesson

Core Web Vitals: LCP, FID, CLS

Understand the three Core Web Vitals that measure real user experience: loading, interactivity, and visual stability.

Core Web Vitals: LCP, FID, CLS

What you'll learn: The three metrics Google uses to measure real-world user experience: how fast your page loads, how quickly it responds, and how stable it looks.

Why These Metrics Matter

After profiling renders and optimizing context, you need to measure what users actually experience. Google's Core Web Vitals are three standardized metrics that capture the moments users care about most:

  1. LCP (Largest Contentful Paint) — Loading performance
  2. FID (First Input Delay) — Interactivity responsiveness
  3. CLS (Cumulative Layout Shift) — Visual stability

These aren't "nice to have" developer metrics. They directly impact SEO rankings, conversion rates, and user satisfaction.

The Three Vitals Explained

Largest Contentful Paint (LCP): Measures when the largest visible element (hero image, headline, video) finishes rendering. Target: under 2.5 seconds. A slow LCP means users stare at a blank or incomplete page.

First Input Delay (FID): Measures the delay between a user's first interaction (click, tap) and when the browser can actually respond. Target: under 100 milliseconds. High FID means your UI feels frozen even though it looks ready—often caused by long JavaScript tasks blocking the main thread.

Cumulative Layout Shift (CLS): Measures unexpected layout movements during page load. Target: under 0.1. Think of clicking a button, only for an ad to load above it and shift everything down—you click the wrong thing. Frustrating!

The Connection to React Performance

Your React optimizations (memoization, lazy loading, code splitting) directly improve these metrics. Unnecessary re-renders can block the main thread (bad FID). Slow components delay content visibility (bad LCP). Images without dimensions cause shifts (bad CLS).

Key Takeaway: Core Web Vitals translate your React performance work into real user impact—LCP measures loading speed, FID measures interaction responsiveness, and CLS measures visual stability.