JavaScript is fragile. There are many things that can cause it to break, from errors in browsers that you have not tested (especially mobile browsers), to browser extensions that play with your code, to dodgy Internet security applications that block parts of your code. If your site works without JavaScript, you have nothing to worry about, because it will probably still work in these circumstances.
JavaScript tends to interact poorly with accessibility aids. A site that runs without JavaScript will be more likely to use screens to read other unusual user agents that you may not have agreed with.
And besides people looking at JS for security / privacy or because they have no choice, there is also a pretty important non-JavaScript user agent class: spider. Hide all your content so that it is not accessible without JavaScript, and you just lost a friend on Google. I hope you did not count on a lot of visitors or something else.
Create a site that runs without scripts, and then add JS magic with progressive enhancement. You will have a site that works for more people, which is likely to have fewer usability problems (*), and is more SEO friendly. This is a comprehensive victory if (a) you have a task that by its nature requires scenarios, or (b) you are simply lazy.
(*: for example, links that you can click with a middle click, but which simply open in a JS error, unregistered subpages, user interface elements that do not respond to keyboard interaction, broken navigation ... you can write JS in a clean way minimize these problems, but most people do not.)
bobince
source share