Course contentsShow
← React
Lesson 1382 of 2,39634. Suspense FundamentalsFree lesson

Waterfall Prevention with Parallel Suspense

How sibling Suspense boundaries trigger data fetching in parallel rather than sequentially.

Waterfall Prevention with Parallel Suspense

You'll learn how placing Suspense boundaries around sibling components triggers their data fetching in parallel instead of sequentially, eliminating request waterfalls.

The Sequential Loading Problem

Without Suspense, it's easy to accidentally create a request waterfall: one component finishes loading, renders a child, which then starts its own fetch, and so on. Each request waits for the previous one to complete.

// ❌ Sequential waterfall (old pattern)
function Page() {
  const user = fetchUser(); // starts
  // ... user loads ...
  return <Posts userId={user.id} />; // THEN Posts fetches
}

The Posts component can't even start fetching until user data arrives. This doubles your loading time.

Parallel Suspense: The Solution

When you wrap sibling components each in their own Suspense boundary, React kicks off all their data fetching at the same time:

function Page() {
  return (
    <>
      <Suspense fallback={<UserSkeleton />}>
        <UserProfile /> {/* fetches user data */}
      </Suspense>
      
      <Suspense fallback={<PostsSkeleton />}>
        <PostsList /> {/* fetches posts data */}
      </Suspense>
    </>
  );
}

Both UserProfile and PostsList suspend immediately when rendered. Their fetches start in parallel. Each boundary shows its own fallback independently, and resolves whenever its data arrives—no waiting in line.

The Analogy

Think of a restaurant with one waiter (waterfall) versus multiple waiters (parallel). With one waiter, table 2 can't order until table 1's food arrives. With multiple waiters, everyone orders at once.

Key Takeaway: Sibling Suspense boundaries enable parallel data fetching by allowing each component to suspend independently, preventing sequential request waterfalls and dramatically reducing total loading time.