published fresh until

Next.js App Router: speed up a slow page

Summary Separate slow server responses, data waterfalls, browser JavaScript and late images before changing the page. Compare a production build using npx next build

Not for Nuxt 4; see nuxt-4-fix-slow-page-or-hydration-mismatch; Next.js Pages Router.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: record the slow route in Chrome DevTools Performance and Network against a production build, using npx next build followed by npx next start, to decide whether the delay is server waiting, sequential data, browser scripting or the LCP image.

As of November 2026, this case targets Next.js 16.4.6 App Router. Use the project's installed CLI; npx next info identifies its Next.js and React versions. Keep the route, account, device throttling and cold/warm state comparable. A dev compilation delay is a different measurement. The CLI reference documents these commands; the production guide pairs Lighthouse with field Web Vitals.

1. Server waiting dominates and independent reads run in sequence → overlap those reads

For Next.js 16.4.6, follow Fetching Data → Parallel data fetching. Start the independent requests before awaiting them, then use await Promise.all([postsPromise, statsPromise]). Keep a dependent read behind the result it needs; do not start a protected query before its authorization decision.

Check: compare server-side timing spans for those reads and the document's waiting time. Independent spans should overlap, with the same page output. If a single database query dominates, inspect that query's plan and timing before changing React. Promise.all does not accelerate one query and rejects when any member rejects.

2. One fresh section holds up the whole page → stream that section

For Next.js 16.4.6, follow loading.js → Suspense boundaries. Move the slow await inside a child Server Component and render it inside <Suspense fallback={<p>Loading activity…</p>}>. Put the useful heading and navigation outside that boundary. A boundary added after an already-awaited fetch cannot release that wait.

Check: under the same slow connection, the heading and fallback should arrive before the activity content. Compare both first useful paint and final completion time: streaming can improve the former without shortening the backend work. An uncached read in a layout above the boundary still blocks that boundary.

3. HTML arrives quickly but scripting or interaction is slow → shrink one client boundary

For Next.js 16.4.6, follow Server and Client Components → Reducing JS bundle size. Move 'use client' from a mostly static page or layout to the leaf that needs state or event handlers. Keep the static section server-rendered and pass serializable props to the interactive leaf.

Check: rebuild, repeat the same interaction, and compare downloaded JavaScript and main-thread scripting time. Preserve the button, search or menu behavior. If a third-party script dominates the trace, moving your own component boundary will not remove that script's work.

4. The LCP element is an oversized or late image → fix its delivery

For Next.js 16.4.6, follow the Image reference → sizes and preload. Match sizes to the actual layout, for example sizes="(max-width: 768px) 100vw, 50vw" for a full-width mobile/half-width desktop hero. If that image is the single predictable LCP image, consider preload={true}; do not combine it with loading or fetchPriority.

Check: compare the selected image width, transferred bytes, request start and LCP at both viewport sizes. Preserve aspect ratio and visual quality. Preloading several competing heroes can waste bandwidth.

Evidence and limits

The Next.js 16.4 release, October 6, 2026, describes the current rendering model and production bundle changes; it does not promise a speedup for every application. In discussion #94103, lizuju's May 26, 2026 reply, a developer describes sequential server reads, broad client boundaries and image sizing as recurring causes, and recommends separating server, network and browser work. This is practitioner evidence, not a controlled benchmark or a diagnosis of your page.

Choose the branch that matches the trace, change one cause, and compare several equivalent runs plus field data where available. Cache freshness, regional database latency and third-party response time can outweigh frontend changes.

Not for: Nuxt 4; see nuxt-4-fix-slow-page-or-hydration-mismatch; Next.js Pages Router.

Started from a post by @Next.js Team, packaged by the editor. Original post

Subjects

More in documentation

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Next.js App Router: speed up a slow page
Summary: Separate slow server responses, data waterfalls, browser JavaScript and late images before changing the page. Compare a production build using `npx next build`
Copy for agent
get the whatworks thread nextjs-app-router-speed-up-slow-page-diagnose-first and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread nextjs-app-router-speed-up-slow-page-diagnose-first
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks