Next.js performance tipes
13 June 2025 (Updated 13 June 2025)
Ensure dynamic routes have a loading.tsx
file
If you don’t add a loading.tsx
file, navigations to a dynamic route mean the user must wait for the entire server response before they’re navigated to the new route.
Having a loading.tsx
for dynamic routes means Next.js can partially render the loading UI whilst the rest of the page is ready to render.
Deduplicate requests with React.cache
See here.
See additional tips
See here
Tagged:
Next.js recipes