logoalt Hacker News

WuxiFingerHold05/04/20252 repliesview on HN

There's no way around waiting for the data to arrive. Being it JSON for SPA or another page for MPA / SSR. For MPA the browser provides the loading spinner. Some SPA router implementations stay on the current page and route to the new one only after all the data has arrived (e.g. Sveltekit).


Replies

grey-area05/04/2025

With SSR all the data usually arrives in 100-200ms, in SPAs all the data tends to take seconds to arrive on first load so they resort to spinners, loading bars etc.

albedoa05/04/2025

> For MPA the browser provides the loading spinner.

Yes, that one. I want that experience please.