• ElectricCattleman@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    1 year ago

    When I led a small dev team making an ecom site I pushed this approach to JavaScript–you should be able to create an account, manage your cart, and check out without JavaScript. All extras with JavaScript just enhance this functionality. Add to cart without leaving the page, a mini cart, client side validation.

    Sadly with the rise of SPAs, this concept is totally out the window.

    • KeenFlame@feddit.nu
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      That sounds like a real pain, as if you want to make functionality on old tech, then use new to “spruce it up” that’s not redundancy nor graceful degradation, it’s just developer torture

      • ElectricCattleman@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        To be fair, this was ~12 years ago and the web has changed a lot since then. But being able to submit a form without js still seems reasonable to me… it also means you are doing proper backend validation. Something I’ve noticed newer devs sometimes have no concept of.

      • bleistift2@feddit.de
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 months ago

        The concept doesn’t only apply to enabling JavaScript. The web standards are continuously evolving and you often have browsers that aren’t quite as up to date as others. When flexing the latest layout technologies or other functionalities, your website should still at least be usable in Safari.