• 0 Posts
  • 9 Comments
Joined 6 months ago
cake
Cake day: February 13th, 2026

help-circle

  • OwOarchist@pawb.socialtolinuxmemes@lemmy.worldscripts?
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    5 hours ago

    Most websites would break, or not even display, without javascript.

    I use NoScript – I’m well aware.

    But a lot of those websites could function without javascript. A lot of websites use it unnecessarily, for reasons such as:

    • They want their ads and trackers and other malicious code (such as soft paywalls) to work as intended.

    • They want to add fancy cosmetic elements to the content and are too lazy to think about failing gracefully and still displaying the content if javascript isn’t working.

    • They built the website in a framework that depends on javascript, and are again too lazy to bother worrying about graceful failure if javascript isn’t working, even if their content could, in theory, be displayed just fine without it. (Or maybe the framework developers deserve a bit of the blame for that laziness, since they could have made graceful failure a feature of the framework, but chose not to.)

    In a hypothetical world where most browsers didn’t allow every website to run arbitrary code, then every website would be forced to take that into account and only depend on javascript when it’s absolutely necessary for the website’s core functions.


  • OwOarchist@pawb.socialtolinuxmemes@lemmy.worldscripts?
    link
    fedilink
    English
    arrow-up
    24
    arrow-down
    2
    ·
    16 hours ago

    Honestly, it’s bonkers that the standard, default approach for all mainstream browsers is to let every random website in the world run any arbitrary code it wants on your computer.

    Yeah, they usually attempt to sandbox it, but still. Sometimes sandboxes can be escaped. And sometimes the code can do significant harm while still inside its sandbox.