• forestbeasts@pawb.social
    link
    fedilink
    arrow-up
    2
    ·
    2 hours ago

    Totally.

    You can even do a lot of the fancy stuff. HTML forms have been there since the beginning and don’t require JS at all. You can do logins, logouts, forms, basically anything as long as it doesn’t involve changing the contents of a page without a page load (aside from animations which you can do in CSS).

    You could even make a Lemmy type thing that didn’t use JS at all, just submitted a form when you hit post, and then the server would take care of the rest! (I’m a little surprised to see Lemmy does seem to require JS for posting, actually.)

    – Frost

  • owenfromcanada@lemmy.ca
    link
    fedilink
    arrow-up
    13
    ·
    13 hours ago

    No. Every time we try, the universe resets itself and then spawns twelve more JS frameworks. A few universes ago, npm didn’t even exist. Now look at us.

  • TrackinDaKraken@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    16 hours ago

    I run NoScript. I only allow the javascript a site needs to function.

    Most sites run well enough without it enabled, at least for viewing the content. Lemmy lets you read without JS enabled.

    Google sites demand JS enabled to show you anything.

    • Squizzy@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      11 hours ago

      NoScript is great. I wsh I knew what each script did instead of trialing them is the issue. Clicking a domain just says safe every time I have checked one. Some ared red and others white even when disabled.

      That said it is the game changer for clear fast browsing and reading. FF and ublock ❤️

  • brokenwing@discuss.tchncs.de
    link
    fedilink
    arrow-up
    5
    ·
    14 hours ago

    There was a website that showcased pure HTML with carousals, navigation and responsive design. I think it was called “you don’t need js” or something

  • kibblebits@quokk.au
    link
    fedilink
    English
    arrow-up
    7
    ·
    17 hours ago

    Yes. Absolutely. And I for one would like to see it. But as an entirely different system with all-new DNSs.

    I would propose a system like HTMX (yes this uses JavaScript, but not if it was part of the browser itself) for interactive and partial support.

    Would it be faster? Ehhh, with proper backend. But it wouldn’t eat your processor or be all janky.

    But, in favor or JavaScript: you can’t make a simple calculator without JavaScript. (Please don’t link me to the crazy css hacks!!)

    • ℕ𝕖𝕞𝕠@slrpnk.net
      link
      fedilink
      arrow-up
      7
      ·
      17 hours ago

      you can’t make a simple calculator without JavaScript

      But you can make an overly-complicated one with PHP!

      /s it would actually still be simple just needing page reloads

      • kibblebits@quokk.au
        link
        fedilink
        English
        arrow-up
        2
        ·
        16 hours ago

        It’s not simple if you use laravel as a framework just to return calculator results ;)

      • kibblebits@quokk.au
        link
        fedilink
        English
        arrow-up
        11
        ·
        16 hours ago

        Why would you want basic math in a web browser. Currency conversion? Shopping carts? Mortgage and interest? Dynamic inputs?

        Basically nothing would be dynamic. Everything would require a round trip to the server.

        Now, I think this “new web” would just simply not cater to those types of “dynamic” desires. Web design would be wildly different. Probably in a good way.

        • CallMeAl (like Alan)@piefed.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          16 hours ago

          Did you mean to reply to someone else? Unless you want to address my specific point about why would I want a calculator in my web browser, I don’t understand your comment.

          • kibblebits@quokk.au
            link
            fedilink
            English
            arrow-up
            3
            ·
            16 hours ago

            There are many different types of calculators. Please educate yourself on them, and consider your question silently to yourself. If you are not a full stack web developer, I feel further communication would be fruitless.

            • CallMeAl (like Alan)@piefed.world
              link
              fedilink
              English
              arrow-up
              2
              ·
              16 hours ago

              WTF are you ranting about? I’m a web user. As I’ve never owned a device which had a web browser but not a calculator, I’m simply asking why would I want a calculator in my web browser?

              Whether or not you are a full stack web developer, I’m confident you can understand this simple concept.

              • kibblebits@quokk.au
                link
                fedilink
                English
                arrow-up
                3
                ·
                15 hours ago

                If you think I’m talking about an actual calculator app inside a web browser 🧮, I assure you, you are not understanding this simple concept.

                I have already given examples of systems that calculate. “Calculators” they call them.

                Mortgage calculators Interest calculators

                … I could go on.

                All button pushing in a non-JavaScript world requires a round trip to the server. Some people consider this slow and full with privacy concerns—and they are right.

                At this point if you are still confused about what I’m saying… then you aren’t ever going to catch up. But please, feel free to continue arguing and embarrassing yourself.

  • neidu3@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    ·
    17 hours ago

    Yes. It was glorious.

    On the flipside, there was a lot of broken CGI (as in, “common gateway interface”)

  • DomeGuy@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    17 hours ago

    Sure!

    It’s just either app-walled (AOL and IE could do things without JavaScript), essentially static (turn off JavaScript and browse around. Many pages won’t work anymore, but many will be seamless) or functionally equivalent (modern browsers support web Assembly, meaning the stuff that JavaScript is used for would instead be in C or java or something.)