Comment on The sheer amount of websites that are completely unusable without JavaScript

<- View Parent
unwarlikeExtortion@lemmy.ml ⁨1⁩ ⁨week⁩ ago

JS is just a janky hotfix.

As it was, HTML was all sites had. When these were called “ugly”, CSS was invented for style and presentation stuff. When the need for advanced interactivity (not doable or too slow on Internet speeds of 20-30 years ago), someone just said “fuck it, do whatever you want” and added scripting to browsers.

The real solution came in the form of HTML5. You no longer needed, and I can’t stress this enough, fucking Flash to play a video in-browser. Other things as well.

Well, HTML5 is over 15 years old by now. And maybe the time has come to bring in new functionality into either HTML, CSS or a new, third component of web sites (maybe even JS itself?)

Stuff like menus. There’s no need for then to be limited by the half-assed workaround known as CSS pseudoclasses or for every website to have its own implementation.

Stuff like basic crat stuff. HTML has had forms since forever. Letting it do some more, like counting down, accessing its equivalent of the Date and Math classes, and tallying up a shopping cart on a webshop seems like a better fix than a bunch of frameworks.

Just make a standardized “framework” built directly into the browser - it’d speed up and lower development complexity, reduce bloat and increase performance. And that’s just the stuff off the top of my head.

source
Sort:hotnewtop