Moving the software into the browser improved latency, but questions like "Is this webpage doing something dangerous/annoying?" became undecidable. If we provably cannot determine if a webpage will halt without running it, we obviously cannot as any more complicated questions about the webpage's behavior. As long as webpages have access to a Turing complete language, the browser will be de facto an OS. Unfortunately, returning to a web of documents isn't going to happen anytime soon; too many people profit from this ability to run programs on other people's computers.
(Gary Bernhardt's amazing (and terrifying) talk "The Birth & Death of JavaScript"[1] was absurdist comedy, not a guide to future browser designs)
[1] https://www.destroyallsoftware.com/talks/the-birth-and-death...
Yes, I've resigned myself to this truth long ago. Since then, I've been watching the web get smaller and smaller as more and more websites break unless they're allowed to run code client side.
I fully expect that the majority of the web will become inaccessible to me within my lifetime. Alas, the future does not always bring wonderful things!
I mean, behaviour of a website may be undecideable. Behaviour over the 5 minutes you're viewing it is. I dont think notions from computability theory are particularly enlightening here.
Eg. Node.js doesn't have WebUSB either :)
Well, I don't think that's how it should be, but that's certainly how it's turning out.
How it should be is that websites degrade gracefully, and remain usable (if more limited in terms of geewhizzery) without client-side scripting.
No, the ship has sailed. Just activate JavaScript and block ads/trackers.
It absolutely has. That's a fundamental design goal for HTML.
> For example a simple auto complete field that loads things from the database as you type. There is no way "graceful" way to implement this without JavaScript.
True, so if the user doesn't have JS enabled, you don't do that. Omitting that functionality doesn't remove the ability to make use of the website.
You're arguing that making proper websites is too expensive to justify. That's your call, of course, but that's a different argument than "it can't be done".
> Just activate JavaScript and block ads/trackers.
No, that's too risky. What I'll do instead is not use the website.