← Back to Blog
PerformanceBy Raja Abbas Affandi· 2026-06-30· 8 min read

Next.js Performance Optimization: From 90 to 100 Lighthouse Score

Practical techniques to optimize your Next.js application for Core Web Vitals, including image optimization, code splitting, and caching strategies.

Next.js Performance Optimization: From 90 to 100 Lighthouse Score

Core Web Vitals: What Matters

Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS), and Interaction to Next Paint (INP) determine your Lighthouse score and Google rankings. Next.js gives you the tools to optimize all three: the Image component, font optimization, and streaming server rendering.

Image Optimization Done Right

Use next/image for every image. It automatically serves WebP/AVIF, resizes to the viewport, and lazy-loads below-the-fold content. Always provide explicit width/height or fill with sizes to prevent layout shift — this directly fixes CLS.

Code Splitting and Bundles

Import component libraries lazily with next/dynamic and keep client bundles small. Framer Motion, charts, and editors should be split so they never block first paint. Review your bundle with the Next.js build analyzer and aim for a main bundle under 150KB gzipped.

Caching and Edge Performance

Cache static pages and API responses aggressively. Use ISR for content that changes rarely, and move frequently-hit routes to the edge. Database queries benefit from Redis caching, and full-page caching at the CDN eliminates origin load entirely.

Need a team to handle this for you? RA Technologies provides professional Next.js web development services — senior engineers, weekly demos, and transparent custom pricing.

RA

Written by Raja Abbas Affandi

Founder of RA Technologies, a full stack development company building SaaS applications, AI-powered software, and Next.js web apps for international clients in the US, UK, Canada, Australia, Germany, UAE, Saudi Arabia, and Singapore.

Need a Software Team That Ships?

Hire RA Technologies for SaaS development, AI integration, and Next.js applications built for international scale.