Should JavaScript Be Required?

December 16, 2007


Should you offer your website to those without JavaScript? – or should you simply require it to make sure your website works how you intended? Where do you draw the line in the sand between functionality and accessibility?


The Simple Answer


If your website is public-facing, then you should not require JavaScript. It is bad for search engines and accessibility. The search engines will not be able to parse all of your website, leaving you with bad search rankings. And most obviously people without JavaScript turned on will not be able to view your hard work.

The non-public facing parts of your site varies. You may be able to tell ahead of time whether or not your administrators (non-public users) use JavaScript, which is usually the case. I think it is fine to require JavaScript for admin interfaces so long as they are not open to just anyone.

The Stark Reality

There are cases in which you simply cannot build websites to accommodate JavaScript on or off. This is life. Requiring JavaScript then boils down to three basic factors: requirements, timeline, and dedication.

Requirements

First, is a non-JavaScript of the website required? If not then you can’t base your decision to build a non-JavaScript version based on the requirements. You then have to factor in the next two variables.

Timeline

Do you have time built into the project for building a non-JavaScript version of the website? If you aren’t required to build your website without JavaScript, then what is the timeline like? Does it allow you to go the extra mile for your users? If you have the time on your hands, then it comes down to the last factor.

Dedication

Lastly, are you dedicated enough to develop that perfect website that works without requiring JavaScript? We front-end developers sometimes aren’t dedicated enough to build a websites that gracefully degrade .

To be fair, there is usually not a lot of pressure on us to go this far with our work – so why do it? The client usually doesn’t care and neither do your coworkers. Requiring JavaScript is a personal choice, but soon enough it won’t be. You will be forced to develop websites that don’t require JavaScript in the future, so why not learn now ? Target was sued and soon enough businesses will realize that this is important.

One Final Note to Business Owners and Business Analysts

If you are a business owner or business analyst reading this, then please realize this: building websites that have great features and yet works without JavaScript can be a difficult task. Don’t pressure web developers to do this without paying them the proper time and resources to accomplish the task. Time is valuable and money talks.

3 comments

#1. Andy on January 07, 2011

Marc,

this is a great point you make, but I am new to JQuery and Ajax so it is hard enough for me to make the cool features work in the first place without having to worry about being sued for neglecting users that cannot use these features. So, in this context, shouldn’t the pressure be put on the browser producers to take care of this?

Backwards compatibility is a related issue that we should not have to care about IMO. The latest browsers should take care of it.

#2. Marc Grabanski on January 07, 2011

jQuery mobile is really trying to help in this area.

#3. Jared - Saskatoon Web Designs on October 10, 2011

We try to make it so out data is available without javascript, but in this day and age if you want that “flare” to your website its difficult to achieve while making your site functional with javascript turned off.

Leave a comment

Comment in textile images by gravatar