A crash course in core web vitals for React developers
summary
Core Web Vitals are LCP FID and CLS measured at the 75th percentile and passing them correlates with 24% less abandonment and a search-rank boost; about 30% of sites currently pass. Field data from CrUX matters more than Lighthouse lab scores; PageSpeed Insights mixes both. Practical fixes include SSR with CDN and cache-key normalization, lazy hydration, lazy-load non‑LCP images, critical CSS and image optimization, and RUM via use RUM/web-vitals (create-react-app includes web-vitals) for minutes‑level feedback.
AI-written summary · about
chapters (36)
- 0:00Intro
- 0:25What we'll cover
- 1:05Our jam: Large, complex sites
- 1:36Jamstack for Production
- 1:59Around the web
- 2:44We're hiring
- 3:05What are Core Web Vitals (CWV)?
- 4:06The road to Core Web Vitals
- 5:32Core Web Vitals matter
- 6:25CWV is Measurable Ranking Factor
- 7:17Lab Data
- 8:10CWV is Field Data
- 13:10Core Web Vitals Optimization Journey
- 14:37Argh!
- 15:06RUM in Create React App
- 15:43try.layero.co/react-day
- 16:18Challenges when optimizing CWv
- 16:40LCP (Largest Contentful Paint)
- 17:07LCP Example
- 18:09React Single Page Applications & CWV
- 20:54Optimizing LCP
- 21:29SSR: Better for LCP
- 22:40SSR can negatively impact throughput and TTFB
- 23:13Make your pages cacheable
- 23:43Normalize Cache Keys
- 24:37Image Optimizations
- 26:05FID (First Input Delay)
- 26:30Understanding FID
- 27:31Approximating FID with TBT (Total Blocking Time)
- 28:24Use Lazy Hydration
- 29:12LazyHydrate in
- 29:30Other FID Optimizations
- 30:16CLS (Cumulative Layout Shift)
- 30:36Understanding CLS
- 30:59Frequent Causes of Poor CLS
- 34:23Further Reading
related talks
39mCore Web Vitals under control
29mCore Web Vitals: Put Your App into Orbit with Best Practices
43mDemystifying and leveraging Web Vitals
30mThe ins and outs of Core Web Vitals
25mCore Web Vitals under control
15mCore Web Vitals – Measuring Performance Like a Pro
25mCore Web Vitals under control
01h 14mCore Web Vitals: Theory and practice
