Skip to content

Step 3 - Waterfalling problem

Course: NextJS (Client side) - chapter 3

Let’s say you built a blogging website in react, what steps do you think the request cycle takes?

  1. Fetching the index.html from the CDN
  2. Fetching script.js from CDN
  3. Checking if user is logged in (if not, redirect them to /login page)
  4. Fetching the actual blogs There are 4 round trips that happen one after the other (sequentially)

💡 The “waterfalling problem” in React, and more broadly in web development, refers to a scenario where data fetching operations are chained or dependent on each other in a way that leads to inefficient loading behavior.