Why prefer non-JS solutions if I don't care about non-JS users?


Great question, I'm glad you asked!

Aside from the fact that not caring about users who prefer to keep JavaScript disabled is extremely douchebaggy (which you're obviously ok with being, otherwise you wouldn't have asked the question), here's why you should still use pure-HTML/CSS solutions whenever they exist:

  1. No matter how fast your user's JS engine is (and, no, they're not all top-of-the-line), a lack of JS will always be faster than fast JS (and use less battery, etc.)

  2. Better compatibility: It's just one less thing to trigger cross-browser compatibility issues. One less thing to go wrong.

  3. There's no guarantee that unneeded JS won't trigger explosive flatulence, male pattern baldness and impotence...Better to be careful, right?

Leave a comment

Captcha