flâneur — a map of the web's best reading

Routing: Loading UI and Streaming | Next.js

nextjs.org · 1,092 words · saved by 2 readers

Built on top of Suspense, Loading UI allows you to create a fallback for specific route segments, and automatically stream content as it becomes ready.

This page is also available as Markdown at /docs/app/api-reference/file-conventions/loading.md . For an index of Next.js documentation , see /docs/llms.txt . Copy page loading.js Last updated March 13, 2026 The special file loading.js helps you create meaningful Loading UI with React Suspense . With this convention, you can show an instant loading state from the server while the content of a route segment streams in. The new content is automatically swapped in once complete. app/feed/loading.tsx TypeScript JavaScript TypeScript export default function Loading () { // Or a custom loading skelet

Explore this link on the map →

saved by

related reading