Performance·Nov 28, 2025·8 min read

Optimizing Core Web Vitals for 100/100 Lighthouse Scores

Yashvardhan Sharma· Founder @ Pyrants & Gati Music

Why Core Web Vitals Matter

Core Web Vitals measure real-world user experience across three metrics:

  1. LCP (Largest Contentful Paint): loading performance, target under 2.5s.
  2. INP (Interaction to Next Paint): page responsiveness, target under 200ms.
  3. CLS (Cumulative Layout Shift): visual stability, target under 0.1.

Optimization Techniques Implemented

  • Pre-allocating Layout Dimensions: explicit width and height on every dynamic image and skeleton loader, so nothing jumps when it loads.
  • Font Preloading: variable fonts preloaded with font-display: swap.
  • CSS Tree-Shaking: Tailwind's JIT compiler keeps the shipped CSS under 15KB.
#Performance#React 19#Web Vitals#Tailwind CSS