How should one tell website visitors that a website makes heavy use of JavaScript?
|
|
Modernizr would be a good bet if you wanted to try your best to support older browsers, but it won't necessarily do much if JavaScript is disabled entirely. In the past, I've simply used a combination of the
That displays in nice, big font on an orange background to get the user's attention. The link takes them to a useful page that detects their browser and shows them the appropriate steps (with images) to get JavaScript enabled again. Of course, you can always include practical reasons as to why the user's experience will be better with JavaScript enabled as part of the message, but for my purposes the application simply will not function without it so I simply say it is required. |
|||
|
|
|
If the user has intentionally disabled Javascript, it's probably because they explicitly want to avoid sites that "make heavy use of javascript" and would thus have a bad impression of such a statement. Explaining to them what they're missing is the best way to convince them to change. Clearly state what they're missing. Chances are there's some good reason you want them to use Javascript. If the site looks a little nicer with JS, tell them that. If the site's forms don't work/validate without Javascript, tell them that. Tell them whatever's important to them. A generic message that says you use Javascript will do little to convince most users to enable it. |
|||||||||
|
|
If you want to check for certain JavaScript features you could use a library like Modernizr. You can use it to check for JavaScript, but it might be overkill for the simple check. A fast soloution would be to use the |
|||||||||
|
|
I'd just use the
or it can just be a notice that says it works best with JavaScript enabled like this site does. |
|||||
|
