i absolutely hate how the modern web just fails to load if one has javascript turned off. i, as a user, should be able to switch off javascript and have the site work exactly as it does with javascript turned on. it’s not a hard concept, people.

but you ask candidates to explain “graceful degradation” and they’ll sit and look at you with a blank stare.

  • Borger@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    1 day ago

    i, as a user, should be able to switch off javascript and have the site work exactly as it does with javascript turned on

    Not agreeing or disagreeing, but why?

    • Frezik@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      1
      ·
      1 day ago

      JavaScript is directly related to almost everything that makes browser tabs take up more RAM than a typical PC in 1998. There are ways to use it in targeted ways that improve responsiveness (objectively or subjectively). The web as it stands is so far beyond that justification that it’s almost laughable to even bring it up.

      I run a personal blog with zero JavaScript; just HTML, CSS, and some pictures. Firefox’s memory snapshot says it uses <3MB on the homepage. Amazon’s homepage is currently giving me 38MB, and this comment section with the Alexandrite frontend is giving me 30MB. Those two may even be at the low end of what’s out there.

      • Borger@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 day ago

        Oh yeah. There’s no doubt that modern web tech stacks are inefficient slop - patchwork built upon patchwork.

        However, JS has been included in every major browser for well over a decade. It’s industry standard at this point, so I found the position of expecting commercial services to be backwards compatible with a 1998 browser setup a little odd.

        What do you think about WebGL apps?

        • Frezik@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          1
          ·
          edit-2
          1 day ago

          I don’t have a fundamental problem with web apps having access to GPU resources. There’s obviously games that can benefit from that. Engines like Godot and Unreal can directly use a web stack as a build target. It makes sense there.

          In general, I don’t have a fundamental problem with any of this being there provided the attack surface area can be managed. Which it isn’t, but that’s another discussion.

          I have a problem with the tools being applied indiscriminately. I’d almost say that every site should start vanilla, and you’d have to specifically justify any use of JavaScript.

      • katy ✨@piefed.blahaj.zoneOP
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        I run a personal blog with zero JavaScript; just HTML, CSS, and some pictures. Firefox’s memory snapshot says it uses <3MB on the homepage. Amazon’s homepage is currently giving me 38MB, and this comment section with the Alexandrite frontend is giving me 30MB. Those two may even be at the low end of what’s out there.

        then you have outlook and google docs, which use a half a gigabyte of memory each.

    • grueling_spool@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 day ago

      I would word it as: I should not have to allow strangers to execute arbitrary code on my PC just so I can view some text and/or images.

    • Mose13@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      1 day ago

      Because big tech has ruined the internet and uses JavaScript among other things, to track you. Some people blame the plastic pollution on improper recycling when we know that’s exactly what the evil plastic industry wants us to do: blame the consumer. Similarly, people think it’s their responsibility to turn off JavaScript when they should be blaming big tech. Even if you get rid of JavaScript, they will just find other creating ways to track you (source). We have to fix the structures running the tech industry.