4 ms·
This is not always possible. Even a functionally simple project like twitter or mastodon could not work without javascript. Heck, even a modern ecommerce store
by hknmtt 3y ago
This is not always possible. Even a functionally simple project like twitter or mastodon could not work without javascript. Heck, even a modern ecommerce store could not work with simple html these days. Modern web applications are interactive and "alive" and simply require front-end application as well and not just plain old html. I would say to go the other way round and figure out how to make vuejs/react apps into web assembly binaries to be run like desktop applications in web browser. The user has no need to see the source code or fiddle with network connectivity.
- alpaca128 3y ago> Even a functionally simple project like twitter or mastodon could not work without javascript Please explain what unique features those two platforms have which oldschool forums couldn't already do without JS. Not to mention you are posting this on a platform which works quite well without JS, including support for folding subthreads and upvotes. > even a modern ecommerce store could not work with simple html these days What is required for an ecommerce store to be "modern" in your view? Because I can't remember a single important part of Amazon which works only due to JS. Sure, that image pan/zoom feature for product photos needs JS, but that feature is also worse than just opening an image file in a new tab and doesn't even work half the time. Amazon also still reloads the entire search whenever I check a filter checkbox, making it annoying and slow to set multiple filters. Another case where poorly used JS actually made it worse than a simple HTML form.
- hknmtt 3y agoTwitter/mastodon require interactivity to keep users engaged. That is what differentiates it from old school forums. Keeping content short helps with focus as well since people want condensed information as fast as possible. You need notifications without having to reload the page to see other people reacting to your content. You need to see likes and shares alive so that you can see the platform is alive and people are active on it. Refreshing the page just won't do. You need to see new posts being written so that you see there is active conversation. None of this can work if one needs to keep reloading the page. Functionally sure, it will work, but it won't give the user the impression of being part of active group of people and engaged. As for e-commerce website, you have live chat, various notifications, integrated payment gateway without the need to be redirected to dedicated gateway website(you CANNOT do it without js due to PCI-DSS). Yeah, it can be done with no JS but who would? And if that would be the case, the sales would most definitely reflect the lack of interactivity and functionality.
- alpaca128 3y ago> You need notifications without having to reload the page to see other people reacting to your content You saw my reaction to your comment on this site without any notification. The same goes for the old Reddit UI which is still popular enough that it's online after 5 years. A lot of people want to just have asynchronous conversations without getting distractions lobbed at their face all the time. I visit Twitter maybe a few minutes per month because all the autoplaying gifs and notifications on all sides make me sick. For me a lack of "dynamic" site content is a valuable feature. > As for e-commerce website, you have live chat, various notifications, integrated payment gateway The only interaction I ever had with live chat was clicking on it to remove it with uBlock, if I want to chat with a salesperson I can go visit a shop. Notifications? Not really necessary. Also 90% of the Amazon app's notifications were suggestions for products that can't even be shipped to my country! With all the data collection you might think they can filter for that but they don't. And you're right about the payment part but that's a tiny fraction of an online platform. The problem with JS is not JS itself but the way it's often abused to degrade the user experience.
- test098 3y ago> A lot of people want to just have asynchronous conversations without getting distractions lobbed at their face all the time... I visit Twitter maybe a few minutes per month because all the autoplaying gifs and notifications on all sides make me sick. Then you're not the target audience. Nobody goes to Chuck E Cheese and complains about the lights and noise. > The only interaction I ever had with live chat was clicking on it to remove it with uBlock, if I want to chat with a salesperson I can go visit a shop. I regularly interact with support on DoorDash, Amazon, and my bank using live chat, instead of having to get on a phone call and get put on hold. > Notifications? Not really necessary. I use a pinned tab for my email, which provides in-browser notifications for new emails and calendar events, so I don't have to install a third-party native app from some random developer (whose installation requires admin access to my machine) just to read my web-based email.
- yakshaving_jgt 3y agoI agree with the spirit of your comment, but I was curious about one detail — how could upvotes work on HN without JavaScript? Voting on a comment doesn't mutate the history stack, so it must work with JavaScript. I had a look, and you can see the function which handles this on line 35 of this file: https://news.ycombinator.com/hn.js?SVa6lVeja0xmejDCQ4o7 https://news.ycombinator.com/hn.js?SVa6lVeja0xmejDCQ4o7
- alpaca128 3y agoJS avoids a page reload, but it still works without JS. A lot of sites don't even load under those conditions.