Have Single-Page Apps Ruined the Web? – Transitional Apps with Rich Harris
youtube.com
youtube.com
I think they are often tonedeaf to how bad their UX can be as well. Contless SPAs feel like they were developed expecting zero network latency, and so they end up performing incredibly poorly in the real world, jiggling around, stuck in intermediate states, it gets very frustrating. To say nothing of their raw performance issues.
The average SPA is not only written to experience zero latency but are poorly written from an efficiency perspective. They are often doing tons of procedures under the hood in order to support generalized programming when in actuality they could get by with a lot less framework code (Svelte in part demonstrates this in a positive way). Programmers waste so much time figuring put frameworks that they shirk proper exception handling, handing off complex tasks to the server, or giving the user cues as to what to expect.
Most SPAs don't even need to be SPAs. If all the meaningful state belongs on a server then the app is better off being a traditional web site with progressive JavaScript enhancement. Not only does that free frontend code to be more UI centric but it also means JavaScript wouldn't be required. It amazes me how many blog sites don't work at all with JS turned off. That shouldn't be any more acceptable than it would have been to implement a blog entirely in Flash back in 2005.
Incorrect.
It has been and can be done without JavaScript as well - with frames, it wasn't because of some z-index problem (so you needed JS to rewrite from hidden iframe) then XMLHttpRequest happened, isn't because lack of knowledge how to properly use them.
> Incorrect.
How to say "I haven't listened to the talk" without saying "I havent' listened to the talk".
The accompanying commentary to that slide is "Here's a non-exhaustive list of thing people will tell you are terrible about SPA: You will need to load a bloated JS framework. It's always bloated, of course."
And then he goes on to explore the validity of these claims ("They are largely valid").