i absolutely hate how the modern web just fails to load if one has javascript turned off. i, as a user, should be able to switch off javascript and have the site work exactly as it does with javascript turned on. it’s not a hard concept, people.

but you ask candidates to explain “graceful degradation” and they’ll sit and look at you with a blank stare.

  • cley_faye@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 days ago

    it’s not a hard concept, people.

    Depends. Webapps are a thing, and without JavaScript, there isn’t much to show at all.

    Websites that mostly serve static content though? Yeah. Some of them can’t even implement a basic one-line message that asks to turn on JavaScript; just a completely white page, even though the data is there. I blame the multiple “new framework every week” approach. Doubly so for sites that starts loading, actually shows the content, and then it loads some final element that just cover everything up.

    • Scrollone@feddit.it
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      It depends. Inertia.js can pre-render pages server side, so you don’t need JavaScript to see the content.

      • cley_faye@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        React can do SSR, too. The issue is that some sites actually means nothing if not dynamic. It makes sense to have SSR and sprinkle some JS on the client for content delivery, no issue there.

  • swelter_spark@reddthat.com
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 days ago

    Love it when a page loads, and it’s just a white blank. Like, you didn’t even try. Do I want to turn JS on or close the tab? Usually, I just close the tab and move on. Nothing I need to see here.

    • Croquette@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      React tutorial are like that. You create a simple HTML page with a script and the script generates everything.

      I had to do a simple webpage for an embedded webserver and the provider of the library recommended preact, the lightweight version of react. Having no webdev experience, I used preact as recommended and it is a nightmare to use and debug.

  • moseschrute@lemmy.world
    link
    fedilink
    English
    arrow-up
    18
    ·
    edit-2
    2 days ago

    I’ve spent the last year building a Lemmy and PieFed client that requires JavaScript. This dependency on JavaScript allows me to ship you 100% static files, which after being fully downloaded, have 0 dependency on a web server. Without JavaScript, my cost of running web servers would be higher, and if I stopped paying for those servers, the client would stop working immediately. Instead, I chose to depend heavily on JavaScript which allows me to ship a client that you can fully download, if you choose, and run on your own computer.

    As far as privacy, when you download my Threadiverse client* and inspect network requests, you will see that most of the network requests it makes are to the Lemmy/PieFed server you select. The 2 exceptions being any images that aren’t proxied via Lemmy/PieFed, and when you login, I download a list of the latest Lemmy servers. If I relied on a web server for rendering instead of JavaScript, many more requests would be made with more opportunities to expose your IP address.

    I truly don’t understand where all this hate for JavaScript comes from. Late stage capitalism, AI, and SAS are ruining the internet, not JavaScript. Channel your hate at big tech.

    *I deliver both web and downloadable versions of my client. The benefits I mentioned require the downloaded version. But JavaScript allows me to share almost 100% code between the web and downloaded versions. In the future, better PWA support will allow me to leverage some of these benefits on web.

    • monobot@lemmy.ml
      link
      fedilink
      English
      arrow-up
      10
      ·
      2 days ago

      Problem is so many websites are slow for no good reason.

      And JS is being used to steal our info and push aggressive advertisment.

      Which part is unknown to you?

      • cley_faye@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        Problem is so many websites are slow for no good reason.

        Bad coding is a part of it. “It works on my system, where the server is local and I’m opening the page on my overclocked gamer system”. Bad framework is also a part of it. React, for example, decided that running code is free, and bloated their otherwise very nice system to hell. It’s mildly infuriating moving from a fast, working solution to something that decided to implements basic language features as a subset of the language itself.

        Trackers, ads, dozen (if not hundreds) of external resources, are also a big part of it. Running decent request blocking extensions (stuff like ublock origin) adds a lot of work to loading a page, and still makes them seems more reactive because of the sheer amount of blocked resources. It’s night and day.

      • moseschrute@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 days ago

        I don’t understand why we are blaming the stealing info part on JavaScript and not the tech industry. Here is an article on how you can be tracked (fingerprinted) even with JavaScript disabled. As for slow websites, also blame the tech industry for prioritizing their bottom line over UX and not investing in good engineering.

      • Infinite@lemmy.zip
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        Problem is so many trains are ugly for no good reason.

        And steel is being used to shoot people and stab people aggressively.

    • Cam@scribe.disroot.org
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 days ago

      The matter is not javascript per se but the use companies and new developers do, if everyone used like you there would probably be no problem. A gazillion dependencies and zero optimization, eating up cpu, spying on us, advertisements…

      And if you try and use an alternative browser you know many websites won’t work.

  • Jimmycrackcrack@lemmy.ml
    link
    fedilink
    English
    arrow-up
    32
    ·
    2 days ago

    I don’t know anything about web development but, is it really fair to say it should work exactly the same with JavaScript turned off? If that were achievable why would it be there in the first place? I assume the graceful degradation concept is supposed to be that as you strip away more and more layers of additional functionality, the core functions remain or at least some kind of explanation is given to the user why things don’t work.

    • Frezik@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 days ago

      As a web dev, I’ll say that yes, it is achievable. The problem isn’t what’s possible, but that we’ve trained new frontend devs in certain ways and given them certain tools. Those tools are being used in places they shouldn’t, and those same new frontend devs are failing to learn the fundamentals of HTTP and HTML.

      React, for example, is a JavaScript framework that’s become incredibly popular in recent years. It’s meant for “single page applications”. I once made a control panel for a vacuum former with it, where you could turn on zones of heating and get the temperature updated in real time. You’re not expected to navigate away from that page while you’re using it. I think this is a good place to use React, though you could make the argument that it should be a native GUI app. (I’ll say that it isn’t that important; this thing runs fine on a Raspberry Pi 3, which is the target platform).

      React is not a good option for an ecommerce site. You want to click on a product to check out its details. That means you’re going between very different views (pages) a lot. React increases complexity with no clear gain. An argument can be made for the address/payment/finalization steps. The money people like that because there’s a strong correlation between streamlining checkout and how often cash ends up in their hands.

      A lot of those sites use React, anyway, for everything. Why? Because we’ve trained a bunch of new frontend devs so much on it that they have no idea how to make a site without React. This overspecialization has been detrimental.

      • moseschrute@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        I’m a full time React and React Native developer. Imo, the frustrations with react are when you server side render. React without SSR is much simpler. But you are 100% right about picking the technology that meets your project’s requirements.

        However, let me play devils advocate. Why do you need to SSR your e-commerce site? To optimize your SEO? Seems to me that SEO lately is a lie we’re being sold to make it easier for LLMs to chew through the entire internet, including your SEO e-commerce site. Imo, search engines have stopped serving the consumer. If we forget the SEO component for a second, you could build a killer e-commerce site that uses React and deliver a great user experience. If this is all about SEO, then I’m sure there is lots of garbage we could inject into our projects that would boost SEO. We could add LLM written top 10 articles to a fake blog on our site that nobody actually wants to read, and boost our Google ranking.

        • Frezik@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          It has nothing to do with SEO. We do server side rendering because it’s the simplest thing that works.

          • moseschrute@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 days ago

            It’s simple when it’s all SSR or it’s all client side rendered (CSR). In my experience, mixing is when the headache sets in. There are benefits to SSR and CSR. You want a webpage that works without JavaScript, use SSR. You want a persistent video player that continues the current video as you navigate pages on your site, use CSR.

    • ElectricMachman@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      People do stuff in JavaScript that you really don’t need JavaScript for. You don’t need JS to display a store listing, for instance. Or a news page, or documentation, or even a search engine

      • Jimmycrackcrack@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        Ok, I’m seeing this a lot and I get it, and despite my lack of expertise in the field I can sympathize with the sentiment. Perhaps those replies are answering more in the spirit of the post than the letter.

        It’s just that the title asked if no one knew what this ‘graceful degradation’ concept was anymore and the text used the example specifically that the page should be exactly the same with or without JavaScript switched on which, without trying to be facetious, sounded kind of logically impossible.

        • ElectricMachman@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          I get you. I think you’re right - if you have a page which does make heavy use of JS, it can be difficult if not.impossible to replicate the same behaviour without it. HOWEVER: you can often get something close enough!

          To go back to my shop example: yes, you can use JS to show a richer shopping experience, with pop-up windows, filtering, and the ability to add to cart without leaving the page. Graceful degradation would be to show the same listings, but without the more convenient features that use JS - so without popups, with filtering that refreshes the page, and a completely separate cart.

          Some apps really can’t function without JS, because they are… well, apps.

  • Sertou@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 days ago

    The web isn’t just HTML and server side scripting anymore. A modern website uses Javascript for many key essentials of the site’s operation. I’m not saying that’s always a good thing, but it is a true thing.

    It is no longer a reasonable expectation that a website work with JavaScript disabled in the browser. Most of the web is now in content management systems that use JavaScript for browser support, accessibility, navigation, search, analytics and many aspects of page rendering and refreshing.

    • katy ✨@piefed.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      10
      ·
      2 days ago

      The web isn’t just HTML and server side scripting anymore. A modern website uses Javascript for many key essentials of the site’s operation.

      which is why the modern web is garbage

  • python@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 day ago

    I only figured this out like, a month ago! I only became a frontend dev when I got shifted into a new team at work, so I came in with zero prior knowledge and have been using exclusively React and Typescript since Day 1. Didn’t even know how to add a css class to something or what tags beside <div> html has until I started a personal project, ran into performance issues (while hosting it in a shitty aws free tier micro t2 lol) and started investigating why my code loads 3MB of Javascript every time I refresh the page.

    I’m working on getting better at it in my personal project, might even try kicking React out entirely and seeing whether just Laravel Blade + Livewire already does everything I need. No way that I’m rocking the boat at work tho.

  • normalexit@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    2 days ago

    Developers are still familiar with the concept, there are even ideas like server side rendering in react to make sites more SEO friendly.

    I think the biggest issue is that there is very little business reason to support these users. Sites can be sued over a lack of accessibility and they can lose business from bad ux, so they are going to focus in those two areas ten times out of ten before focusing on noscript and lynx users. SEO might be a compelling reason to support it, but only companies that really have their house in order focus in those concerns.

  • Phoenixz@lemmy.ca
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 days ago

    Ibuild pretty feature heavy CMS type sites, and though I always try to go HTML only first (I’m quite old school still), it’s almost impossible to escape JavaScript

    Having said that, the entire “my website won’t even show anything on the landing page without JavaScript” should die a quick death already

  • scarabic@lemmy.world
    link
    fedilink
    English
    arrow-up
    51
    ·
    edit-2
    3 days ago

    You’re correct, and I’m going to explain how this happens. I’m not justifying that it happens, just explaining it.

    It isn’t that no one knows what graceful degradation is anymore. It’s that they don’t try to serve every browser that’s existed since the beginning of time.

    When you develop software, you have to make some choices about what clients you’re going to support, because you then need to test for all those clients to ensure you haven’t broken their experience.

    With ever-increasing demands for more and more software delivery to drive ever greater business results, developers want to serve as few clients as possible. And they know exactly what clients their audience use - this is easy to see and log.

    This leads to conversations like: can we drop browser version X? It represents 0.4% of our audience but takes the same 10% of our testing effort as the top browser.”

    And of course the business heads making the demands on their time say yes, because they don’t want to slow down new projects by 10% over 0.4% of TAM. The developers are happy because it’s less work for them and fewer bizarre bugs to deal with from antiquated software.

    Not one person in this picture will fight for your right to turn off JavaScript just because you have some philosophy against it. It’s really no longer the “scripting language for animations and interactivity” on top of HTML like it used to be. It’s the entire application now. 🤷‍♂️

    If it helps you to blame the greedy corporate masters who want to squeeze more productivity out of their engineering group, then think that. It’s true. But it’s also true that engineers don’t want to work with yesteryear’s tech or obscure client cases, because that experience isn’t valuable for their career.

    • rottingleaf@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      This has to be fixed though. I don’t know, how, but it’s an economic situation bringing enormous damage every moment.

      And most of people it affects are, like me, in countries where real political activism is impossible.

      This is the next thing that should be somehow resolved like child labor, 8-hour workdays, women’s voting rights and lead paint. Interoperability and non-adversarial standards of the global network.

      • scarabic@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        2 days ago

        enormous

        It isn’t though. Thats the exact point. It’s a moderate effort that would prevent infinitesimal damage. That’s just not good math. People have to prioritize their time. If you have a numbers case to make about why the damage is so enormous, make it. That’s what it will take to be convincing: numbers.

        • rottingleaf@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          It is. It’s like the medieval Sound Toll, you can’t measure it well enough because there are no trade routes between the Baltic and the North Sea other than the Sound, the Kiel channel is not yet a thing.

      • Shanmugha@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        What should be fixed is people. The above described logic is true, it does really happen, and behind it is the idiot desire: to get more money. Not to make a better thing, not to make someone’s life better, not to build something worthwhile - in other words, nothing that could get me out of bed in the morning. When that’s the kind of desires fueling most companies and societies, all things will be going in all kinds of wrong ways

        • scarabic@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          the idiot desire to get more money

          Yes, but we don’t have to make a total caricature out if it. We all need to prioritize our time. That isn’t evil, or broken, or wrong. That’s just life.

            • scarabic@lemmy.world
              link
              fedilink
              English
              arrow-up
              4
              ·
              2 days ago

              Developers having a narrower list of browsers to support is not ONLY about greed. You say it is NOT about making something that works to improve people’s lives. And I disagree with that.

              You can’t build a good piece of software and try To support every client under the sun since the beginning of time. There is a reasonable point to draw some lines and prioritize.

              So while greed is ONE factor, you seem to be saying it’s the only factor, and that people are stupid and broken for doing this. That’s going too far.

              It’s unrealistic to expect perfection. Today people want comprehensive client support. Tomorrow they will be outraged at some bug. But few realize: you may have to pick between the two. Because having zero bugs is a lot more achievable if you can focus on a small list of current browser clients. That’s just a fact. The next day they will be upset that there are ads in the site, but it may be ad revenue that pays for developers to fix all the bugs for all browser clients under the sun.

              People love to rant online about how NO you should give me EVERYTHING and do it for FREE but this is childish tantruming and has no relationship to reality. Devs are not an endless resource that just gives and gives forever. They are regular people who need to go home at night like anyone else.

              • Shanmugha@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                9 hours ago

                I am saying it is about greed because it actually is, since I am yet to see a situation where the ultimate filter for supporting/dropping a client is NOT revenue from people using that client, and here I am talking specifically about companies making money on their product, so no open source, subsidised, hobby projects etc.

                Peole love to rant online

                They do, now try to catch precisely me doing this

        • rottingleaf@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          That can’t be fixed. We can’t wait for a different kind of human (what if it’ll be an artificial psychopath anyway) to fix our current thing.

          So hard to disrupt means of organizing (for associations, unions and such, unofficial) and building electoral systems (for Internet communities even, why not) are needed ; social media gave people a taste of that to lure them before subverting it all, but the idea is good.

          Some sort of a global system. When it’s in place, improvement around will follow.

          • Shanmugha@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 days ago

            It can be fixed: we can choose to produce less idiots and more caring people. You are right, of course, that it is not the only thing we should be doing

  • kieron115@startrek.website
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    2 days ago

    I thought graceful degradation in terms of web design was mostly just to promote using the latest current browser features but to allow it to fall back to the feature set of, say, 1 or 2 previous browser versions. Not to support a user completely turning off a feature that has been around for literal decades? I think what you’re promoting is the “opposite” side, progressive enhancement, where the website should mostly work through the most basic, initial features and then have advanced features added later for supported browsers.

    • rumba@lemmy.zip
      link
      fedilink
      English
      arrow-up
      10
      ·
      2 days ago

      Not OP, But welcome to my TED talk.

      Supporting disabled JavaScript is a pretty significant need for accessibility features. None of the text browsers supported JavaScript until 2017, and there’s still a lot of old tech out there that doesn’t deal well with it.

      It wasn’t until the rise of react and angular that this became a big deal. But, It’s extremely common now to send most of the website as code. And even scrapers now support JavaScript.

      There’s no “minor point” clause on the term graceful degredation. At the same time, there’s no minimum requirement. Would it be good to be thorough and provide a static page? I’d say yes but it’s not like anyone is going to do that anymore.

      The tables have turned, You can no longer live without JavaScript and now you need browsers that lie about your screen resolution, agent and your plugins because mega corps can sniff who you are by the slightest whiff of your configs.

      And that’s NOT pretty cool

      • kieron115@startrek.website
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        Thanks for the response, good points all around. The fingerprinting is the most convincing argument to me but I think the accessibility issue you bring up is more important.

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 days ago

    It is substantially harder to make a modern website work without JavaScript. Not impossible, but substantially harder. HTML forms are not good at doing most things. Plus, a full page refresh on nearly any button click would be a bad experience.

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    20
    ·
    3 days ago

    JavaScript is needed to actually build anything useful. It is way easier to maintain and when done properly it can be very fast to load and use.

    The problem with today’s web is that pages are extremely inefficient and bloated. You can keep the same UI just don’t try to use every framework and library under the sun. Also it would be nice if people actually formated assets properly instead of using tons of large images and other assets.

    • Frezik@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 days ago

      JavaScript is needed to actually build anything useful

      Not even close. I wrote a management system for the keyfobs at my makerspace. I had some JavaScript in there previously for things like loading up logs with pagination over ajax calls or searching for members by name. I took all that out and made it straight server side HTML. It’s fast, takes minimal browser memory, and the back button works with zero fuss.

      Just try making an application that way sometime. Yes, you can find places for targeted use of JavaScript, but every web dev should at least try making a project without it.

      • tomenzgg@midwest.social
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 days ago

        It’s not the bulk of your point (of which I agree with) but your mention of the back button reminded me how much I despise – sometimes above everything else – how much these sites override basic functionality of the browser, overriding inbuilt history navigation, screwing up Ctrl click behaviors, stealing my right-click menu or default key bindings.

        There’s a lot of reasons one might not want to use TikTok but the reason that stops me before even having to consider other reasons (but I can’t really explain to most people) is that it’s a site designed without any really respect or regard for the user.

        Alt+d doesn’t work and Ctrl+l pops up some modal about logging in. I can’t open any of the recommended videos in a new tab because they clearly must’ve just done them as onclicks and not real anchor tags so right clicking doesn’t give me the option and neither does Ctrl clicking (which – also – that’s…got to be an accessibility violation, right?). And more than half the time the full page doesn’t even load because it’s such a strangle of resources that it needs me to click a button on the page because it wasn’t able to load the videos listing of an account in time.

        The whole thing is just a nightmare in terms of design and primarily not even in terms of inefficiency but direct hostility to UX. Absolute garbage.

    • the_wiz@feddit.org
      link
      fedilink
      English
      arrow-up
      10
      ·
      3 days ago

      JavaScript is needed to actually build anything useful

      Tell this to the people who build things you would call today a “Webapp” with CGI written in C.

      • NigelFrobisher@aussie.zone
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 days ago

        So many basic pages are still done as an SPA when they’d work fine as a postback form. It’s infuriating, but web development is rife with magic hammers.

    • Kissaki@feddit.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      I’m sure you have something different in mind than me when you say JavaScript is way easier to maintain.

  • baggachipz@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    62
    ·
    3 days ago

    Blame the ui frameworks like react for this. It’s normalized a large cross-section of devs not learning anything about how a server works. They’ve essentially grown up with a calculator without ever having to learn long division.

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      8
      ·
      3 days ago

      Not all frameworks are bad

      The problem is the devs/owners not understanding basic fundamentals. They could see a major financial benefit if they make the page snappy and light but apparently no one at these companies realizes that.

    • jimmy90@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      PE from server rendering only to a full interactive SPA in the browser is really not trivial both for frameworks and app devs

      there are a handful of frameworks that support it fairly ergonomically now but it’s a discipline that takes time and effort

      also disabling javascript is a tiny minority use case

  • XM34@feddit.org
    link
    fedilink
    English
    arrow-up
    44
    ·
    3 days ago

    If it’s a standard webpage that only displays some static content, then sure.

    But everything that needs to be interactive (and I’m talking about actual interactivity here, not just navigation) requires Javascript and it’s really not worth the effort of implementing fallbacks for everything just so you can tell your two users who actually get to appreciate this effort that the site still won’t work because the actual functionallity requires JavaScript.

    It all comes down to what the customer is ready to pay for and usually they’re not ready to pay for anything besides core functionallity. Heck, I’m having a hard enough time getting budget for all the legally required accessibility. And sure, some of that no script stuff pays into that as well, but by far not everything.

    Stuff like file uploads, validated forms and drag and drop are just not worth the effort of providing them without JS.

    • rottingleaf@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      The business customer or the visitor?

      The visitor doesn’t exactly have a way to give feedback on whether they’d use a static page.

      Stuff like file uploads, validated forms and drag and drop are just not worth the effort of providing them without JS.

      Honestly many of today’s frameworks allow you to compile the same thing for the Web, for Java for Android, for Java for main desktop OS’es and whatever else.

      Maybe if it can’t work like a hypertext page, it shouldn’t be one.

      • XM34@feddit.org
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 days ago

        The business customer who actually pays for the development.

        Maybe if you can’t use the web without disabling JS, you shouldn’t?

        Progressive Web Apps are the best tool for many jobs right now because they run just about everywhere and opposed to every single other technology we’ve had up until now they have the potential to not look like complete shit!

        And the whole cross compilation that a lot of these frameworks promise is a comete pipe dream. It works only for the most basic of use cases. PWAs are the first and so far only technology I’ve used that doesn’t come with a ton of extra effort for each supported plattfrom down the line.

        • rottingleaf@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          The business customer who actually pays for the development.

          Then it’s my duty as a responsible customer to not make it profitable for them, as much as I can.

          Maybe if you can’t use the web without disabling JS, you shouldn’t?

          Suppose I can use the Web with JS disabled. Just that page won’t be part of my Web.

          Yes, of course when the optimization work has been done for you, it’s the easiest.

          It’s an old discussion about monopolies, monocultures, standards, anti-monopoly regulations, where implicit consent is a thing and where it isn’t, and how to make free market stable.

      • XM34@feddit.org
        link
        fedilink
        English
        arrow-up
        21
        ·
        edit-2
        3 days ago

        Not if you want them to be at least halfway user friendly. Form validation is terrible when done completely server side, and several input elements like multiselect dropdowns, comboboxes and searchfields won’t work at all unless supported by client side JavaScript. And have you ever tried to do file previews and upload progress bars purly serverside?

        So I guess by fileupload you mean “drop file here and wait an uncertain amount of time for the server to handle the file without any feedback whatsoever.” and by forms you mean “enter your data here, then click submit and if we feel charitable we may reward you with a long list of errors you made. Some of which could have been avoided if you knew about them while filling in previous fields”.

        • The_Decryptor@aussie.zone
          link
          fedilink
          English
          arrow-up
          5
          ·
          3 days ago

          It depends on the type of input validation you’re doing, a bunch of it is built into the browser and you don’t need JS for it.

        • rottingleaf@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          So - the situation is understood, but the question arises, what does this have in common with a global hypertext system for communication.

          Maybe all this functionality should be removed into a kind of plugin, similarly to how it was done with Flash and Java applets and other ancient history. Maybe sandboxed, yes.

          Maybe the parts of that kind of plugin relating to DOM, to execution, to interfaces should be standardized.

          Maybe such a page should look more like a LabView control model or like a Hypercard application, than what there is now.

          One huge benefit would be that Google goes out of business.