Ask HN: Why Spas (Single Page Applications) Are So Popular?
When I try to login to my bank to see my transactions or make a payment, it's a multi-minute affair, because it's all an SPA, and the individual parts take ages to load, and you mostly can't even use the bookmarks or URL autocompletion to navigate to the appropriate sections of the site. Usability is a mess, backwards/forwards buttons often don't work, bugs are everywhere (probably because noone really understands how the whole thing works and what are the limitations).
Before SPA, it was a very quick task; now it takes ages to see it finish loading the various pages.
Same with Reddit — the newest redesign is extremely slow, and especially unusable on mobile, although desktop experience itself isn't any better.
A good counterexample to SPA — Hacker News — not an SPA. It's very quick to load (unless you're shadowbanned). Straight HTML. URLs work. Forwards/Backwards navigation buttons work perfectly. There's no need for any sort of a progress bar, because the actual page loads up immediately. (One way to ruin it would be to convert it to SPA.)
Why are they teaching SPAs in bootcamps? Why is there so much demand when it decreases usability, SEO, and probably conversion rates, too, compared to the plain old server-side HTML-based rendering, with a little bit of auxiliary JavaScript like here on HN?
I could understand SPAs being used for webmail and webchat (although both are also possible without SPA), but why has it taken over for things like online banking, where all data is static (it's usually cached at a time you login)?
Has anyone ever thought how much energy is wasted daily on all these megabyte-sized SPAs when the same information could be presented in kilobyte-sized straight HTML? Wouldn't the most immediate action we can take against global warming is to tune-down SPAs a bit?