Next.js performance checklist: what I check first in an audit

The checks that find most of the speed problems in Next.js apps, in the order I run them, from measuring real users to bundles, data fetching and caching.

Samed Škulj

Samed Škulj
· 3 min read

When a team tells me their Next.js app is slow, the cause is rarely exotic. It's usually one of a dozen common problems, and the trick is finding which ones in a few hours rather than a few weeks. This is the order I check things in.

1. Measure what real users experience

Lab tools like Lighthouse are useful, but they test one device on one connection. Start with field data:

  • Core Web Vitals from real users: Vercel Speed Insights, Google Search Console, or the Chrome UX Report for your domain.
  • Which pages are slow, not just the site average.
  • Which metric fails: LCP (loading), INP (responsiveness) or CLS (layout shifts). Each has different causes. See fixing LCP, INP and CLS.

Write down the baseline. Every fix should move these numbers.

2. Check what renders on the server vs the client

In the App Router, the biggest wins often come from moving work back to the server:

  • "use client" too high in the tree. One directive at the top of a layout turns everything below it into client JavaScript. Push it down to the smallest interactive component.
  • Data fetched in the browser with useEffect when it could be fetched in a Server Component. Client fetching means an empty page, then a spinner, then content.
  • Pages that are dynamic for no reason. Reading cookies or headers in a shared layout can make every page dynamic. Check the build output for which routes are static.

3. Look at the JavaScript bundle

Run the bundle analyzer and look for:

  • Large libraries used for one small thing (a full date library for one format call, a full icon set, a charting library on a page without charts).
  • Heavy components loaded on first paint that are only needed after a click: modals, editors, maps. Load them with next/dynamic.
  • The same library bundled twice in different versions.

4. Follow the data

Most slow pages are slow because of what happens before the HTML is ready:

  • Request waterfalls: a component awaits one fetch, then its child awaits another. Start independent fetches in parallel with Promise.all, or move them up.
  • N+1 queries: one query per row of a list. The most common database problem I see. See N+1 queries.
  • Missing indexes on the columns your queries filter and sort by. See Postgres indexes every SaaS app needs.
  • Slow third-party APIs called on every request, uncached.

Add timing logs around data calls on slow pages. The numbers usually point straight at the problem.

5. Check caching

  • Is data that rarely changes fetched fresh on every request?
  • Are expensive pages statically generated or revalidated on a schedule where they could be?
  • Do API responses send cache headers a CDN can use?

6. Images and fonts

  • Use next/image with correct sizes, so phones don't download desktop images.
  • Mark the hero image as priority; lazy-load the rest.
  • Use next/font so fonts are self-hosted and don't cause layout shifts.

7. Third-party scripts

Analytics, chat widgets, A/B testing and tag managers often cost more than your own code. Load them with next/script using lazyOnload or afterInteractive, and remove the ones nobody looks at.

8. The backend under load

If pages are fast for one user but slow at peak, check database connection limits, serverless cold starts, and whether background work (emails, webhooks, reports) runs in the request path.

What the result should look like

Not a list of 80 warnings. A short, ranked list: what's slow, why, the fix, and the effort. That's what a performance and code audit delivers in five days, in the format of the sample audit report.

Written by Samed Škulj

Senior Full-Stack Engineer since 2021. I have shipped with teams at Deel, HTEC Group (for Zoox), Ministry of Programming, and now help SaaS teams add AI features and get AI-built apps ready for production. LinkedIn