• squiblet
    link
    fedilink
    121 year ago

    This is also a philosophy for building web apps - flexibility to still work if client features are unavailable rather than breaking or refusing to work at all. Someone having JavaScript turned off, for instance - some sites will show you no content with a “JavaScript is required” notice, while others are made to at least display the basic page.

    • @[email protected]
      link
      fedilink
      English
      3
      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.

      • @[email protected]
        link
        fedilink
        English
        21 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

        • @[email protected]
          link
          fedilink
          English
          11 year 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.

        • @[email protected]
          link
          fedilink
          English
          11 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.