• 0 Posts
  • 3 Comments
Joined 2 years ago
cake
Cake day: January 26th, 2024

help-circle
  • 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 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, Flash to play a video in-browser. For 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 JS implementation.

    Stuff like basic math 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 development, lower complexity, reduce bloat and increase performance. And that’s just the stuff off the top of my head.


  • As a web dev, and primarily user, I like my phone having some juice left in it.

    The largest battery hog on my phone is the browser. I can’t help wonder why.

    I’d much rather wait a second or two rather than have my phone initialize some js framework 50 times per day.

    Dynamic HTML can be done - and is - server-side. Of course, not using a framework is harder, and all the current ones are client-side.

    Saying making unbloated pages is impossible to do right just makes it seem like you’re ill informed.

    On that note - “Closed-source” JS doesn’t really exist (at least client-side) - all JS is source-availiable in-browser - some may obfuscate, but it isn’t a privacy concern.

    The problem is that my phone does something it doesn’t have to.

    Having my phone fetch potentially 50 MB (usually 5-15) for each new website is a battery hog. And on a slow connection - to quote your words, “great UX”.

    The alternative is a few KB for the HTML, CSS and a small amount of tailor-made JS.

    A few KB’s which load a hundered times faster, don’t waste exorbitant amounts of computing power - while in essence losing nothing over your alternative.

    “Old pages with minima style” is a non-sequitur. Need I remind you, CSS is a thing. In fact, it may be more reliable than JS, since it isn’t turing-complete, it’s much simpler for browser interpreters to not fuck it up. Also, not nearly the vulnerability vector JS is.

    And your message for me and people like me, wanting websites not to outsource their power-hogging frameworks to my poor phone?

    Go build your own browser.

    What a joke.