Essentially the same html/css rendering of Firefox or Chromium, still able to access the www, but with javascript fully removed for another language that can be interpreted - like python or lua. Is this feasible?

  • lime!@feddit.nu
    link
    fedilink
    arrow-up
    11
    ·
    2 days ago

    there were plans for multiple scripting languages for the web, hence the type="javascript" attribute on the <script> tag. the thing that became javascript was originally more like a lisp, but netscape wanted to cash in on the popularity of java applets so they made the language look more java-y.

    the bones are there, there’s just no sense in implementing it in mainstream browsers now.

    • e0qdk@reddthat.com
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      Microsoft had a Visual Basic variant (VBScript) in IE that got some attention back in the 90s; it’s probably just as well that JS won instead of that

      In modern webdev type="module" is used to indicate an ES6 module and type="importmap" to include a JSON table of paths to modules. Still basically JS, but the parameter is still used in a meaningful way.

      • lime!@feddit.nu
        link
        fedilink
        arrow-up
        4
        ·
        2 days ago

        i think they’ve even retired the original function of the attribute. sad.

        • e0qdk@reddthat.com
          link
          fedilink
          arrow-up
          1
          ·
          2 days ago

          Personally, I think it’s particularly stupid that you can’t use it for GLSL shaders from external files…