Core Web Vitals

LCP, INP, CLS — what moves them (bundle size, image loading, layout shifts) and how to measure with Lighthouse before guessing.

About 23 min read3-question knowledge check

The mental model

Web performance is not "how fast is the server" — it is when does the user perceive progress. Core Web Vitals formalize three perceptions: LCP (Largest Contentful Paint — "the main thing is visible"), INP (Interaction to Next Paint — "when I act, it responds"), and CLS (Cumulative Layout Shift — "the page doesn't jump around under my finger").

The analogy that sticks: a restaurant. TTFB is how long until a waiter acknowledges you. FCP is bread on the table — *something* arrived. LCP is the main course — the thing you came for. INP is the waiter's responsiveness all meal long — you ask for the bill and they vanish for 40 seconds, and that's the memory you leave with. CLS is the table being rearranged while you're eating — your fork moved just as you reached for it; on the web that's the ad pushing "Place order" down 200px the instant you tap.

Why this exists as a discipline: perceived speed is a revenue lever with published effect sizes (retail studies repeatedly find single-digit-percent conversion changes per 100ms of load time), and Google folds CWV field data into search ranking. Without metrics, teams optimize what's visible in dev tools on an M-series MacBook over fiber — while the median user is on a mid-range Android over cellular, where your 400KB of JavaScript costs seconds of parse-and-execute, not milliseconds. What breaks without the discipline is invisible locally by definition.

The second load-bearing idea: field data beats lab data. Vitals are assessed at the 75th percentile of real users (via CrUX or your own RUM). Lighthouse is a controlled lab experiment for diagnosis and regression-catching — it cannot tell you what users experience, only what's plausibly wrong.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision