Lesson 3.3

Streaming with Suspense

Streaming lets the fast parts of a page render while the slow parts are still loading, so time to first paint stops being hostage to your slowest query.

Duration
3m
Level
Intermediate
Students
11k students

Overview

Streaming lets the fast parts of a page render while the slow parts are still loading, so time to first paint stops being hostage to your slowest query.

In this lesson you will:

  • Wrap slow subtrees in Suspense with a real fallback
  • Use loading files for route-level streaming
  • Avoid blocking the shell on a single slow request

Resources

Next.js documentation

The official reference for the tools used in this lesson.