Suppose I’m developing a web app that is heavily dependent on JavaScript and which uses AJAX for all the POST commands to store data, etc.
How should one deal with those situations where a user may have JavaScript turned off? Is it unreasonable to require that a user’s browser has it turned on? Are there any best practices for these situations?
Use
<noscript>tags to let users know that they cannot use the site without Javascript. It’s not the best practice, but it is common at this point and most users without it will have experience being left out in the rain.That said, if you can provide a version of the site that doesn’t require Javascript (think the degraded version of gmail), that is clearly a superior solution. Without it, you will lose mobile surfers, plus blind folks and others with accessibility needs. And people who are too stubborn to use JS, but we don’t care about them.