DEV Community

Cover image for People disable javascript in their browser? 😱 Give 'em something to cry about!

People disable javascript in their browser? 😱 Give 'em something to cry about!

Conner Ow on January 01, 2022

Did you know that two percent of people that use the internet disable javascript in their browser? That's a surprising amount. Guess what? If yo...
Collapse
 
grahamthedev profile image
GrahamTheDev

Your New Years resolution should be to not β€œpoke the bear” calling me out on articles you know are going to anger me 😜🀣

Seriously though funny article with some actual useful tips sprinkled in there (the meta refresh in a no script is one I love ❀️) and it is obviously my silly sense of humour πŸ˜„

Much deserved β€οΈπŸ¦„ from me!

Collapse
 
ironcladdev profile image
Conner Ow

lol I'm glad I didn't get a whooping from the accessibility master!

Collapse
 
grahamthedev profile image
GrahamTheDev

Hehe I don’t know if this reputation I have is a good or a bad thing but either way it makes me smile πŸ˜ƒ 🀣.

Collapse
 
darkwiiplayer profile image
π’ŽWii πŸ³οΈβ€βš§οΈ • Edited

In this article, I'm going to show you some pretty (dark) techniques to make them turn javascript on forever.

More like leave that shitty site and never look back

Well, what can you do with this? Maybe state something about still being able to log ips which makes no difference or that disabling javascript is a security vulnerability. Go wild!

It makes a huge difference. And it's enabling javascript that is the security vulnerability ;)

Even if a client has javascript disabled, they'll turn it on for a few sites that require it.

Or just leave


But yea, it's sad how many websites need javascript to sow static content. In my opinion, this is primarily a sign that many "web"-developers these days don't understand the technologies they're working with and don't know any better than to write their entire website in JS.

Collapse
 
oniichan profile image
yoquiale

Disagree, js is also used to create cool interactions and effects.

Collapse
 
darkwiiplayer profile image
π’ŽWii πŸ³οΈβ€βš§οΈ

Yes, there are indeed very valid use-cases for JS on static websites.

These use-cases, however, should not be used as an excuse to make a whole website of static content unavailable to a user who wants to opt out of providing websites with access to their processing power because they don't want to audit any website they use for potential crypto-miners.

Thread Thread
 
oniichan profile image
yoquiale

Who would stop using JavaScript on their static websites because of some conspiration paranoid?

Thread Thread
 
darkwiiplayer profile image
π’ŽWii πŸ³οΈβ€βš§οΈ

People who aren't massive dicks

Collapse
 
nikitakhutorni profile image
Nikita Khutorni

This is hilarious :'D

Collapse
 
jankapunkt profile image
Jan KΓΌster

Their (gnu) perspective is highly debatable as it focuses on freedom of code. So if I release my full blown js app under agpl license (which we actually do!) and if I do it for a better good for the public (which we also do!) then their argument is invalid.

Collapse
 
cicirello profile image
Vincent A. Cicirello

Read the entire gnu article. They cover this. What you are doing (releasing your app under agpl) is an example of what they argue should be done. They provide a link near end of article covering how to state license details, etc.

Thread Thread
 
jankapunkt profile image
Jan KΓΌster

This discussion is about disabling JavaScript and my argument is that if I publish my app via agpl and disclose the source and do some good then there is no reason to disable JavaScript so the argument is not good for why people should disable JavaScript. Our app fulfills all their requirements yet it's a pure JS app.

Collapse
 
sargalias profile image
Spyros Argalias

Lol, I love it. I'm gonna start using these tips in production.

If we don't have JavaScript, we don't have nothing!

Collapse
 
ironcladdev profile image
Conner Ow

Very true. Without javascript, I'm not a web dev.

Collapse
 
19wintersp profile image
Patrick Winters

Yeah no don't do this

Collapse
 
peerreynders profile image
peerreynders

please share your ideas with me on how to take this a step further!

In November 2020 heydonworks.com went the opposite direction β€” to view the web site you had to disable JavaScript:

But JavaScript isn't the point
… it, is that forcing a visitor down a specific path just so that they can access the content is a burden that they should not carry.

In truth most visitors wouldn't know how to disable JavaScript even if they wanted to. Which leads us back to:

and not in production-level websites.

Sure but some other resources might be nice:


Unrelated but perhaps thought provoking β€” (Mobile) Apps Must Die (2011):

(Native) apps are a remnant of the Jurassic period of computer history, a local maximum that is holding us back.

Collapse
 
jankapunkt profile image
Jan KΓΌster

How is this an accessibility issue? I would even say that disabling js can cause accessibility issues. For example: we use js to generate browser speech synthesis for functional illiterates to be able to read any text.

"bUt ScReEnReAdErS" - yeah no one has them installed because many functional illiterates can't but they know how to open a browser or scan a qr code. With js disabled they would actually have a real disadvantage here.

Collapse
 
jzombie profile image
jzombie

As recently as 2007 (15 years ago), I was blocking JavaScript on nearly every site I visited because I didn't trust it, didn't understand it.

By 2008 it became my favorite language.

Collapse
 
artidataio profile image
Imaduddin Haetami

How did you know the number? You made it up? I think it should be way lower than that.

Collapse
 
ironcladdev profile image
Conner Ow

What number?

Collapse
 
artidataio profile image
Imaduddin Haetami

The two percent

Collapse
 
vreezyde profile image
Lars Eschweiler

In Germany you have to serve a no javascript Site with an Impressum and contact data. It's a law. But no one does it or control it. I think other contries have similar laws.

Collapse
 
snelson1 profile image
Sophia Nelson

Thanks for writing this!