Web Framework Internals interview question · Most asked

What happens in the browser from navigation to an interactive single-page app?

Summary

DNS, TLS and the HTML request; parsing HTML and downloading CSS and JavaScript; the framework renders the app (or hydrates server-rendered HTML); effects or mounted hooks run and often start data requests; components re-render with data. Client-side navigations then change routes without full reloads, running router guards or loaders.

Longer Answer

Fetching in nested effects creates request waterfalls; load data at the route level and in parallel. Hydration mismatches happen when server and client render different output.

Key Points

  • Navigation → HTML → assets → render/hydrate.
  • Effects after render start fetches.
  • Router guards/loaders on navigation.
  • Avoid waterfalls and mismatches.

Deep dive: Request Lifecycle: The Browser Side: React and Vue Page Loads

Explanation

What interviewers look for

Correct sequence and the waterfall issue.

More most-asked Web Framework Internals questions

← All Web Framework Internals questions