Question Bank · Section 20
SPA Behavior & Browser Mechanics
8 questions. How single page applications load, navigate, handle assets and deal with SEO, explained at the browser level.
Interviewers use SPA questions to check whether you understand what the browser is actually doing under React. This section walks through the SPA lifecycle, client-side routing with the History API, asset loading, and why SPAs need extra work to be SEO-friendly.
01What happens behind the scenes when a Single Page Application loads?02How many times does the HTML file load in an SPA vs an MPA?03If you use document.querySelector() and update a DOM element, does the page reload in traditional apps?04Why does navigation in SPAs not trigger a full page reload?05How does React update the view when the URL changes without reloading the document?06How are assets (JS, CSS) handled in SPAs, and how does it impact performance?07Why are SPAs less SEO-friendly by default?08What are the strategies to make SPAs SEO-compatible?