Frontend & browser·Rendering and the browser pipeline
the page looks finished but clicking a button does nothing for another two seconds.
Hydration
Attaching client-side behaviour — event listeners and component state — to server-rendered HTML that is already on screen. It is the price of server rendering in a component framework: the browser downloads the same component code, runs it again, and walks the existing DOM to match it up. Because it is one large synchronous chunk of work, it is the classic cause of a page that is visible long before it is interactive.