(no title)
pharrlax | 8 years ago
Obviously there are disadvantages as well, but it's a tradeoff, and if executed correctly it's one that, as fewer people turn off JS and browsers become better at running web apps, is increasingly becoming worth the complexity for certain use cases.
TeMPOraL|8 years ago
For me it's about how user-hostile those decisions are. I can understand SPA-s when e.g. the service would be infeasible if all the processing was done server-side. But more often than not, it's just laziness. The devs can deploy a sleek-looking SPA in 5 minutes with their JS toolchain, forever dooming users to download tons of pointless JS that adds nothing valuable to their experience. But who cares, today's zeitgeist is "privatize the profits, socialize the costs".
Think of all those sites with articles and blog posts that blank out if you have JS disabled. There's no reasonable argument to be made that they should be SPA. That's just a case of user-hostile laziness.
drdaeman|8 years ago
Oh, if that'd be true...
Our experiments with React took quite a lot of time (like, weeks) before we got things in shape. And then some more time before that shape wasn't a pear.
And if the backend is not in JS, server-side rendering is quite a mess.
prawl|8 years ago
Reimplementing these features in JS is often pretty feasible, and occasionally there are use cases for it, but it's a lot of additional overhead and it's not at all unusual to introduce bugs that really hurt the UX. (UX is not just adding as much branding as possible on top of vanilla browser behavior.)
The average newspaper website should not load 15 megs of junk from 20 different domains with a massive amount of Angular code just so I can read a single paragraph of plain text. This is an example of a document, it's what the web was made for and browsers already do it well without turning most documents into an SPA.
scaryclam|8 years ago
rsynnott|8 years ago
sedachv|8 years ago
In my anecdotal experience, I am running across more people that are turning off JavaScript, partly because browsers are becoming more bloated and worse at running web apps.