0PricingLogin
React Academy · Lesson

Measuring Core Web Vitals in React Apps

Use Lighthouse, WebPageTest, and the web-vitals library to collect LCP, INP, and CLS scores.

What Are Core Web Vitals?

Core Web Vitals are Google's user-experience metrics that affect SEO ranking: LCP (Largest Contentful Paint — loading), INP (Interaction to Next Paint — responsiveness), and CLS (Cumulative Layout Shift — visual stability).

Good Thresholds

Target values: LCP ≤ 2.5s, INP ≤ 200ms, CLS ≤ 0.1. Values above the 'poor' threshold (LCP > 4s, INP > 500ms, CLS > 0.25) significantly hurt user experience and SEO.

All lessons in this course

  1. Measuring Core Web Vitals in React Apps
  2. Bundle Analysis & Code Splitting Strategy
  3. Image & Font Optimisation in React
  4. Reducing INP: Event Handler Optimisation
← Back to React Academy