Back to Blog Archive
Next.js2026-06-151 min read
Next.js Core Web Vitals: Reaching 100/100 PageSpeed & Lighthouse Scores
An optimization guide on tuning Next.js layouts, loading static resources with custom prioritization, optimizing images, and reducing server execution delays.
Next.jsReactPageSpeedLighthouseWeb Performance
Lighthouse audit scores directly impact search index priority and user interaction conversions. Modern web architectures require strict asset loading strategies to maintain responsive viewports on slower mobile connections.
1. Asset Optimization Strategies
To achieve a 100/100 Lighthouse score, Next.js implements several features:
- next/font: Subsets fonts and automatically compiles styles locally.
- next/image: Serves compressed AVIF/WebP formats with explicit dimension overrides.
- next/script: Defers non-essential Javascript (like analytics trackers) using the
afterInteractivestrategy.
import Image from 'next/image';
export default function HeroImage() {
return (
<Image
src="/hero-banner.png"
alt="Ajit Dev — Full Stack Portfolio Banner"
width={1200}
height={630}
priority
className="rounded-xl shadow-lg"
/>
);
}
2. Server vs Client Component Hydration
By using Server Components (RSC) by default, we execute logic on the server and transmit static layout structures, preventing client-side hydrations of unchanged layouts. This drastically reduces the total JS bundle size.