Geekster

This is the mostly random blog of a Geek, Scott "Geekster" Leonard.

Thursday, April 10, 2008

Bad Javascript Policy

Coders should all take the Hippocratic oath, and do no harm.

I'm finding that many take a different oath, that makes no sense to me. I think it goes something like, "I will do whatever I want, to make sure immediate people around me are happy, for now, regardless of how much harm I cause the client's image, the Internet and the public."

Today I surfed into a site that closed its doors to me, because I was running No-Script. Why do I use No-Script? It's just safer, so I think it's really mandatory today.

Here is the first glimpse of the website before their site disables access:


And a split second later, users without Javascript enabled get this, and the back button is disabled in Firefox:

Further inspection indicates that no source data exists unless JS is enabled.

Why would a site do this?
Sites do this to ensure ads are being viewed, and tracking cookies are being enabled. Surfers like me will either find a way around it and become annoyed with the website and skip the article altogether. We may even blacklist the domain, thinking it's just annoying, and we may even avoid it in the future.

You would be surprised to know how petty and vindictive the general public is when it comes to websites that are broken.

You need to get your message out.

Bottom line is that if you are designing a website that is going to use Javascript, don't make it mandatory to do so -- come up with another solution if the customer can't use it.

Your website can't make money if nobody goes there anymore. Benefit exists from even just showing the page with the ads displayed in a simple format. Brand recognition is a big factor, and it does make sense.

Convincing a customer to click a banner ad sometimes takes a few months of them seeing it! They are not going to see it if you make your audience angry!

Websites exist to serve the public information. When they refuse to do so, or place stupid conditions on doing so, they are no longer websites -- they are just part of the black hole network.