All of the people replying to this saying you shouldn’t need JS are totally unaware how modern web development works.
Yes, you could do many sites without JS, but the entire workforce for web development is trained with JS frameworks. To do otherwise would slow development time down significantly, not allow for certain functionality to exist (functionality you would 100% be unhappy was missing).
Its not a question of possibility, its a question of feasibility.
I’m a React dev. You can create server side websites, written in JS, that don’t require JS to be turned on in the browser. Granted, this just became a new official feature in React but has already been available with React frameworks like NextJS
That is insane! I’m wondering how they handle modifying the DOM w/ out JS, did HTML 5 get a significant update? I gotta look into this because that sound super interesting.
Any chance you know what version that went out with? I did a brief look at 18 and 17 and couldnt find it. Id really love to know how they are managing this.
It’s called Server Components. If you actually build a fully static website, there is no DOM modification going on. I would actually not recommend doing that with React because it kinda defeats the purpose. The goal of it is to have a mix of both. The initial render is super fast because it is prerendered once for everyone. Then dynamic data is being fetched if needed and elements are replaced. It also improves SEO.
I know this may come off as a surprise: but I imagine that requiring JS in 2024 isn’t a big deal to most people.
Now of course Lemmy skews more into that small crowd.
I don’t blame any website for requiring JS for full functionality in 2024.
All of the people replying to this saying you shouldn’t need JS are totally unaware how modern web development works.
Yes, you could do many sites without JS, but the entire workforce for web development is trained with JS frameworks. To do otherwise would slow development time down significantly, not allow for certain functionality to exist (functionality you would 100% be unhappy was missing).
Its not a question of possibility, its a question of feasibility.
I’m a React dev. You can create server side websites, written in JS, that don’t require JS to be turned on in the browser. Granted, this just became a new official feature in React but has already been available with React frameworks like NextJS
That is insane! I’m wondering how they handle modifying the DOM w/ out JS, did HTML 5 get a significant update? I gotta look into this because that sound super interesting.
Any chance you know what version that went out with? I did a brief look at 18 and 17 and couldnt find it. Id really love to know how they are managing this.
It’s called Server Components. If you actually build a fully static website, there is no DOM modification going on. I would actually not recommend doing that with React because it kinda defeats the purpose. The goal of it is to have a mix of both. The initial render is super fast because it is prerendered once for everyone. Then dynamic data is being fetched if needed and elements are replaced. It also improves SEO.
React 19 is not yet officially released but you can read more about it here https://react.dev/blog/2024/04/25/react-19