• voxel
    link
    3
    edit-2
    11 months ago

    css can do animations, and it’s much more performant then js. I hate how over-used JavaScript is on “modern” websites.
    some websites are even straight up unusable or don’t display anything with js disabled…

    • @dukk@programming.dev
      link
      fedilink
      511 months ago

      Some websites, JavaScript is necessary for doing things without overloading a server. Mostly SPAs/PWAs and such. I’m using Voyager for Lemmy right now, which needs JS, but it gives me a great experience.

      But yeah, JS is often overused. Luckily, with new technologies coming out like Astro and HTMX, we should hopefully start seeing less JavaScript on pages that don’t need it.

      • voxel
        link
        211 months ago

        htmx just generates js too

        • @dukk@programming.dev
          link
          fedilink
          511 months ago

          However, it uses a lot less JS. It’s only a few lines of JS to replace an HTML element, but a lot more to parse a bunch of JSON and then alter the HTML to reflect that.