Live data from Hacker News

Your website should work without JavaScript (2021)

endtimes.dev

131–140 of 159 posts

Re: Your website should work without JavaScript (2021)

#131
post #111

Earlier quoted context omitted.

I'm not really sure I get the point. Simply opening a browser means you're allowing the browser developer to run code on your computer, and you're giving them permission to do so by downloading, installing and using their software.

The differences between the browser I'm currently using and a random website with javascript on the web are: - The browser's source code is available so I can see what it does. - The browser is distributed by Debian who also distribute most other software I use so there is 1 organization to trust instead of 1000. - The browser is not downloaded and executed and upgraded automatically, so it's possible for me to know…

Any Javascript your browser runs is, by definition, available for you to see what it does.

Re: Your website should work without JavaScript (2021)

#132
post #87

Earlier quoted context omitted.

> Purists who refuse to load websites with JS are such a small percentage of visitors they can be safely ignored. Except they are not[0]. Besides micro browsers there's screen readers that can't even use sites that customize a bunch of div elements with no accessibility tags. [0] https://24ways.org/2019/microbrowsers-are-everywhere/

For most commercial purposes screen readers can be safely ignored, they are not used by big spenders. Social share cards can be previewed readily and easily prepared without impacting the main content of the website.

Microbrowsers do not run JavaScript. That means if all the routing is handled by JavaScript or the only HTML served is a script tag a microbrowser will show nothing. More and more JavaScript monstrosities do not properly show up in share sheets because they offer no meaningful content to a microbrowser.

Re: Your website should work without JavaScript (2021)

#133
post #99

The real pertinent reason to regulate and to get noscript/basic (x)html web portals (at least on "critical" online services) is that "javascript" requires a grotesquely and absurdely massive and complex web engine, including its SDK. The only web engines today are blink/geeko, financed by google(vanguard/blackrock), and webkit financed by apple(vanguard/blackrock). They are all written using c++ which has also a grot…

Quickjs exists, and serenity OS' browser (ladybird) show that js engines, and js-able browsers, are doable by developers outside giant corporations.

Re: Your website should work without JavaScript (2021)

#134

Earlier quoted context omitted.

>Not so much for CRUD db form apps/forums/blogs/wikis etc. If you want decent/custom FE validation you do still need it

I assume "FE" means "form error" - personally I agree with you, but you can still make it work without it.. "progressive enhancement" where validation is still done serverside which is an absolute must even if you do use JS for that. Also, HTML5 validation is pretty darn powerful these days. Check it out if you haven't already.

Probably "front end". But yeah, you can do a lot with just html and css.

Re: Your website should work without JavaScript (2021)

#135
post #111

Earlier quoted context omitted.

I'm not really sure I get the point. Simply opening a browser means you're allowing the browser developer to run code on your computer, and you're giving them permission to do so by downloading, installing and using their software.

The differences between the browser I'm currently using and a random website with javascript on the web are: - The browser's source code is available so I can see what it does. - The browser is distributed by Debian who also distribute most other software I use so there is 1 organization to trust instead of 1000. - The browser is not downloaded and executed and upgraded automatically, so it's possible for me to know…

Modifying websites with userscripts, userstyles, and extensions is wayyyy easier than modifying native apps IMO, especially if they aren't open source.

Re: Your website should work without JavaScript (2021)

#136
post #99

The real pertinent reason to regulate and to get noscript/basic (x)html web portals (at least on "critical" online services) is that "javascript" requires a grotesquely and absurdely massive and complex web engine, including its SDK. The only web engines today are blink/geeko, financed by google(vanguard/blackrock), and webkit financed by apple(vanguard/blackrock). They are all written using c++ which has also a grot…

As far as I understand, Gecko and Blink are completely separate, and if we were to put things together with slashes, Chrome/Edge/Opera (Blink) and then Safari (WebKit) share the same lineage (and even Konqueror!). Firefox/Gecko come from a very different direction. To call out investors behind commercial project fails to acknowledge the rich OSS history behind the browser engines. By no means I intend to disregard the tremendous influence Google exerts on web standards with their browser monopoly, but putting it all in the same bin does not help the issue anymore so.

Re: Your website should work without JavaScript (2021)

#137

I used to think this. I even used uMatrix (RIP) to disable all JS. After a while though, it simply wasn't worth it. You'll have a vocal minority on HN of JS disablers, but the truth is most people don't know or care about JavaScript, much less want to disable it. So, it's really not worth catering to this 0.2% or even 1% of people as the article cites. There are just too many interesting things JS can do. I've been p…

I have a medical disorder which could one day render me blind.

I worry about how much of the web I will be able to use.

Don’t JS free web pages have better accessibility?

Re: Your website should work without JavaScript (2021)

#138
post #97

Earlier quoted context omitted.

I'm not going to do that because it's effectively double the work for 1% of the users. This implies that if you only did the CSS version you'd do the same amount of work as the JS version but it would work for everyone. Why wouldn't you do that? Doing only the JS version means you spend the same engineering effort but it doesn't work for as many people. Choosing to do that when you have a choice makes absolutely no s…

> A particular example is using an animation library like Framer Motion that works with JS. It is somewhat possible to achieve similar effects in CSS, creating your own spring function in SCSS for example, to interpolate between values, but I'm not going to do that because it's effectively double the work for 1% of the users. > > Doing only the JS version means you spend the same engineering effort but it doesn't wor…

> Where did I say it would be the same engineering effort?

Saying "double the work" implies the doubling to be total - i.e. the Framer Motion approach and the SCSS approach are each 100%, and doing both would therefore be 200% or double.

What you're saying now would be more accurately described as "triple the work" - i.e. Framer Motion would be 100%, SCSS would be double that (200%), and the total would be 300% or triple.

Re: Your website should work without JavaScript (2021)

#139

Earlier quoted context omitted.

> A particular example is using an animation library like Framer Motion that works with JS. It is somewhat possible to achieve similar effects in CSS, creating your own spring function in SCSS for example, to interpolate between values, but I'm not going to do that because it's effectively double the work for 1% of the users. > > Doing only the JS version means you spend the same engineering effort but it doesn't wor…

> Where did I say it would be the same engineering effort? Saying "double the work" implies the doubling to be total - i.e. the Framer Motion approach and the SCSS approach are each 100%, and doing both would therefore be 200% or double. What you're saying now would be more accurately described as "triple the work" - i.e. Framer Motion would be 100%, SCSS would be double that (200%), and the total would be 300% or tr…

Yeah, I guess you could say that, so in reality it's even worse (more overall work for me) in order to reach 1% of users.

Re: Your website should work without JavaScript (2021)

#140
post #111

Earlier quoted context omitted.

I'm not really sure I get the point. Simply opening a browser means you're allowing the browser developer to run code on your computer, and you're giving them permission to do so by downloading, installing and using their software.

It's funny how this argument doesn't fly with people when it comes to blocking advertisements, with one man claiming it takes food out of his child's mouth.

Maybe he should consider feeding his child with actual food rather than my personal data. Probably would taste better, at the very least.
Post reply on HN