logoalt Hacker News

WuxiFingerHoldyesterday at 3:27 AM2 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-areayesterday at 5:32 AM

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.

albedoayesterday at 5:28 AM

> For MPA the browser provides the loading spinner.

Yes, that one. I want that experience please.