HTML and CSS can do quite a lot, and you can use cgi-bin
for some scripting.
Of course, it’s not a perfect alternative. JavaScript is sometimes the only option; but a website like the one I was trying to use could easily have just been a static site.
ImgurRefugee114@reddthat.com 4 days ago
WASM and cry because you can’t directly modify the DOM without JS.
unwarlikeExtortion@lemmy.ml 4 days ago
You can’t modify the DOM.
But ~some~ most dynamicity can stay - sites can be built freely server-side, and even some “dynamic” functionality like menus can be made using css pseudoclasses.
Sure, you won’t have a Google Docs or Gmail webapp, but 90% of stuff doesn’t actually need one.
A basic website doesn’t require js.
A webshop, for example, does for the part around adding to cart and checkout - but it doesn’t for merely browsing.
dual_sport_dork@lemmy.world 4 days ago
For a web store you probably only need Javascript for payment processing. Insofar as I’ve seen pretty much all of the widgets provided by the card processors outright require Javascript (and most of them are also exceedingly janky, regardless of what they look like on the outside to the user).
You definitely don’t need Javascript just for a shopping cart, though. That can all be done server side.
possiblylinux127@lemmy.zip 4 days ago
You can’t use web assembly without JavaScript to initialize it.