Live data from Hacker News

Create No-JavaScript friendly sites

garron.blog

11–20 of 129 posts

Re: Create No-JavaScript friendly sites

#12
I absolutely agree that JS is over-used, but for anything other than very static content I generally am not interested in kowtowing to the strict "no JS" folks. Javascript has become a fundamental part of the web, and for the same reason I won't put in extra work to make my sites work in IE, I also will not put in extra work to make my sites work for (a vanishingly small number of) people who pre-emptively block one of the most powerful tools in my belt.

On a side note, the first example the author uses for a menu alternative[0] is highly obnoxious. The "unobtrusive" example assumes that your page is written in PHP but doesn't declare this assumption up front, it leaves it until half way into the article. The example is not usable in a static website that won't properly handle a POST request. So the JS example is still vastly superior for many cases.

[0] https://css-tricks.com/unobtrusive-page-changer/

Re: Create No-JavaScript friendly sites

#13
post #2

I'd like to say that ship has sailed, but in this case it's more like the last rocket launched, Krypton was destroyed, and the last partisans of NoScript are trapped in the Dark Zone, or whatever the thing with General Zod was called. Not that big of a Superman fan.

Yup, not enabling javascript is akin to using an outdated browser for better or for worse.

Disabling JS protects you from cross site scripting, invasive tracking and cryptominers though. So there‘s definitely a plus. I would like to know the percentage of sites that use JS for actually improving the user experience (e.g. voting not requiring a page reload on HN) vs. those where it‘s just a gimmick (e.g. „want to talk?“ popup). I expect the majority to fall in the second category. So I applaud every effort of websites getting rid of their JS.

Disclaimer: I have JS enabled.

Re: Create No-JavaScript friendly sites

#14
post #12

I absolutely agree that JS is over-used, but for anything other than very static content I generally am not interested in kowtowing to the strict "no JS" folks. Javascript has become a fundamental part of the web, and for the same reason I won't put in extra work to make my sites work in IE, I also will not put in extra work to make my sites work for (a vanishingly small number of) people who pre-emptively block one…

What percentage of city bus riders or public restaurant visitors do you think use the wheelchair ramp?

Re: Create No-JavaScript friendly sites

#15
I applaud sites that work without Javascript.

The sad reality is that the enormous popularity of SPA frameworks like React and Angular make this possibility a small fraction of important sites — e.g. I don’t know if any banking or investment website that works without JavaScript.

Maybe this is less important as app-culture supplants such sites.

Re: Create No-JavaScript friendly sites

#17
post #12

I absolutely agree that JS is over-used, but for anything other than very static content I generally am not interested in kowtowing to the strict "no JS" folks. Javascript has become a fundamental part of the web, and for the same reason I won't put in extra work to make my sites work in IE, I also will not put in extra work to make my sites work for (a vanishingly small number of) people who pre-emptively block one…

What percentage of city bus riders or public restaurant visitors do you think use the wheelchair ramp?

If I have a client requirement that calls for a high degree of accessibility this obviously changes my approach. I'm talking about things I make for myself, or for clients with less stringent requirements. Same argument goes for the IE crowd.

Re: Create No-JavaScript friendly sites

#18
post #8

People like interactive sites which give immediate visual feedback for actions. Aside from the tracking stuff it's a better user experience, so it's unlikely to go away, especially if the demand for no-js is tiny.

You can have your cake and eat it too. Use progressive enhancement/graceful degradation so that users with JS get immediate visual feedback, and just fall back to reloads without JS.

Re: Create No-JavaScript friendly sites

#19
I wrote about a generalized way to use React, Redux and SSR to make sites that work without JS a short while ago[0] and I’m currently employing that strategy for a side project I’m working on.

So far the biggest drawback is not being able to do a payment flow with Stripe Checkout without requiring JS on _my_ service, because Stripe.js is required to redirect a user to the checkout session.

[0] https://news.ycombinator.com/item?id=23426951

Post reply on HN