Performance——13 min read

Improving Next.js Performance Beyond a Lighthouse Score

A practical look at image delivery, rendering strategy, third-party scripts, database work, caching, and why performance optimization starts with finding the actual bottleneck.

Improving Next.js Performance Beyond a Lighthouse Score

Performance optimization is often reduced to chasing a Lighthouse score. Lighthouse is useful, but the score itself is not the system. Real optimization requires understanding what the user is waiting for and which part of the application is responsible.

Start with the bottleneck

Before changing rendering strategies or adding caching, identify whether the delay comes from images, JavaScript, database queries, server execution, third-party services, or the browser.

Images are often the first problem

Large images can dominate page weight and directly affect perceived loading performance. Responsive image sizes, modern formats, appropriate compression, and correct priority for important images can have a significant impact.

Server-side performance matters too

A page can look simple while performing expensive database queries or initializing third-party SDKs on the server. Reducing unnecessary work can improve response time without changing the visual design.

Optimization should be measurable

The goal is not to make the code look optimized. The goal is to reduce actual work and improve the experience users receive. Measurements before and after a change provide much stronger evidence than assumptions.

Dipesh Thapa

Dipesh Thapa

Full-Stack Engineer based in Nepal, specializing in Next.js, TypeScript, Prisma, and high-performance server architectures.

Related posts

Browse all articles

Get engineering
notes

Technical case studies, engineering lessons, and notes from building real-world digital products and systems.

Logo icon

Occasional deep-dives into software architecture, database performance, payment integration, and engineering practices.

No spam · Unsubscribe anytime