tags:

views:

275

answers:

8

I hear about it a bit in tutorials that I watch, that certain things won't work if javascript is disabled. Occasionally I see workarounds.

The question is, are these relevent? I can't imagine anyone not having a javascript enabled browser nowadays, except the most ancient of phones, and chances are your page won't render on them properly anyway.

Do people still bother to write backup code for javascript being disabled?

Edit: As a test, I turned javascript off. Facebook doesn't work.

Edit: I understand about visually impaired users, but do people care (harsh, yes) if their experience is buggy? Not to sound disrespectful, but not sticking to strict standards will alienate people using Internet Explorer 4 and 5 too, but we don't seem to care about them...?

Edit: Saying that people should do it seems like a very automatic response, considering how many people use JQuery and other groovy addon libraries.

Edit: I tried a bunch of fortune 500 sites, and so far about 70% of the ones I tried have broken

Dell
Walmart
Fedex
Intel
Coca Cola
+16  A: 

Yes, we still need backup code for people who have JavaScript disabled.

  • JavaScript is often used to do things that break in screen readers (so many screen reader users disable it) or to cause changes to appear out of sight of a screen magnifier.
  • JavaScript is still one of the biggest attack vectors to exploit security holes in browsers.
  • Add-ons such as No-Script are increasing in popularity.
  • Search engines tend not to execute it (so you don't want to hide your content behind it)

I prefer to think of it as a foundation rather than backup.

I understand about visually impaired users, but do people care (harsh, yes) if their experience is buggy?

Nasty people don't.

The law (in many jurisdictions) does.

Not to sound disrespectful, but not sticking to strict standards will alienate people using Internet Explorer 4 and 5 too, but we don't seem to care about them...?

IE 4/5 have:

  • a smaller market share than users without JS
  • many security holes
  • no support from their own publisher
David Dorward
Yes they do, or yes it's important?
SLC
+1 for good link on foundation
SLC
+1: on JS being an attack vector. I was hit by a drive-by-download a few months ago because I didn't have NoScript installed in my Firefox browser. I'm always appreciative of smart JS programmers who account for people with JS disabled. The Honest Tea website is programmed properly. It fails gracefully when there is no JS or Flash. See this page for an example: http://www.honesttea.com/tea/plastic/mango_green/ (hehe, well, you'll have to disable your JS to see what I mean...)
Pretzel
Do they have a smaller market share than people with screenreaders though? I would say more people use outdated browsers than special screenreaders. You say "nasty people", but how certain are you that every webdeveloper on this site who uses JQuery makes sure their site is fully functional without it?
SLC
Yes, they do have smaller market share. More people do, but "outdated" is much wider then "IE 4/5". I'd be very surprised if everybody who used jQuery and SO produced quality sites (especially given some of the questions). Note that I didn't use the word "only" though.
David Dorward
So in answer to the original question, do you think people need to do it if they are getting by so well without? Especially with regard to fortune 500 companies.
SLC
How many of those companies have websites that actually matter to the company?And, yes, people need to do it. For legal, moral and doing the best possible instead of "getting by".
David Dorward
Well, Dell, Fedex and Walmart probably do.What legal and moral issues exist here anyway? My house doesn't have wheelchair access, but I am not discriminating against people, it just doesn't have one. I'm not actively excluding anyone. The effort it takes to fallback gracefully and test everything twice probably doesn't warrant it for the handful of people who would want to view your site with a screenreader, nevermind those that actually go on to do business with you.
SLC
You house is, presumably, not providing a service to the public. The effort it takes to fallback gracefully is not as much as some people seem to think.
David Dorward
I'm certainly going to check it out, you are talking sense. If the cost is minimal I'll try to be savvy in future projects :)
SLC
+2  A: 

Yes. Especially when it comes to 508 and WCAG compliance. While the technologies to create accessible JavaScript are coming out of their infancy (see ARIA), developer's should still be coding sites in a way the does not require JavaScript.

http://www.w3.org/WAI/aria/faq

http://www.w3.org/TR/WCAG10/

Levi Hackwith
On the other hand (not that I disagree), ARIA can actually work really well, and can provide *better* usability if exploited. People with disabilities who use screen reader systems and other assistive technologies are generally motivated to keep up-to-date, too. It's definitely something to investigate for those wishing to maximize accessibility of their applications.
Pointy
Much as there is motivation to upgrade, a copy of JAWS standard costs about 10 times more than Windows.
David Dorward
A: 

It is not merely a question of whether a browser is capable of executing javascript, but if a user has disabled it for some reason.

For example, you need to be aware of vison-impaired users. Such users might disable javascript, because the effects are confusing their screen reader software.

Paul Butcher
+2  A: 

I have a different opinion to many here. I don't think you necessarily should care in some scenarios, especially if your website is targeting a particular group of people or that it is going to mean a lot of work.

if you refer to:

http://visualrevenue.com/blog/2007/08/eu-and-us-javascript-disabled-index.html

alt text

You can see that year on year more browsers than ever have Javascript enabled, contrary to the other answers' claims. It was at 96.9% in 2007.

So you lose 3% of potential viewers, so what, your advertising campaign will do a lot more damage than that!

Gary Willoughby
Those are statistics for W3Schools itself — a subset of users who think W3Schools is a good place to learn from is not a particularly useful sample.
David Dorward
Edit: Added a better analysis.
Gary Willoughby
@Gary, this really depends on your target audience. If you're catering to, say, military contractors, browser capabilities will typically be more severely restricted. We still have to support IE6 with no JS for this reason.
David Lively
Agreed, that's why i said **some scenarios**. On the whole though, don't sweat it!
Gary Willoughby
A: 

All the other questions got most of the points covered, but I'll chime in with this: it's not a big deal to have your page(s) degrade gracefully in the absence of javascript. If you've got some super-whizzy ajax-infested real-time comet style app that really isn't going to work without javascript, you should at least render a nice message to the effect that javascript is required.

Richard
A: 

My recent experience:

My former supervisor claimed, in earnest, that because Google Analytics told us that "87% of our users have Java enabled and less than 3% are using IE6," that we didn't have to worry about supporting older browsers or users with JavaScript disabled.

Problem 1: Java is not JavaScript.

Problem 2: In order for Google Analytics to track a hit, the browser must have JavaScript enabled because the GA interface is a JS include. GA is not, and can not, be aware of users with JS disabled, which can potentially severely skew its reports.

Problem 3: one of our biggest customers requires that all engineers use IE6 with JS disabled.

Problem 4: The boss (at the time) didn't know how to read analytics reports.

If you want to know how important this support is to your business, a good place to start is the IIS logs. Just about everything related to the browser caps is stored by IIS. I regularly import the logs into SQL Server and run some basic reports from my admin site, which come in handy every time someone starts suggesting that we go crazy with the jQuery BS.

If you decide to start building complicated, script-dependent interfaces, be sure that your interface degrades gracefully and doesn't remove required functionality if JS is disabled.

David Lively
A: 

It depends on your audience and type of website.

For instance, a graphic artist portfolio will not be visited by blind people or people using text browsers. So in that case it's not so important to build nice degradable JS, expecially because it will most probably be used for graphic effects.

If, on the other hand you're developing a news website and you decide (for whatever reason) to dynamically load your news with JS then you should definitely make it degradable. Also, remember that the spiders of indexing engines may have difficulties in indexing content loaded with JS in your page.

At the end of the day, in most cases it's not so difficult to program the site so that it works without JS. If you're retrieving content dynamically you already have the server-side code to load the content, you just need to accomodate how the page is called. Same thing for forms, you can send the content via AJAX or via a normal POST, the backend will be pretty much the same, so it's again easy to implement.

Of course, the problem is not even posed for JS code that is purely graphical.

nico
+1  A: 

Support for JavaScript-disabled web sites a nice thought, but not of much help, and of questionable value, IMHO

It is almost impossible to design a robust website without java script, and those that disable JS, for whatever reason, probably don't expect much of a user experience. So if you are coding for that 1% of the population, you have no choice. But for the majority of us, it is a given that JS is there. Accessibility is a different issue, with its own challenges. When I was doing web sites for Hewlett-Packard, they had to meet strict accessibility standards, and it was tough to create anything more than very basic web pages. I wouldn't wish that on anybody.

Kevin Raffay