4 ms·
I assume you're talking about the <noscript> element (as opposed to something to do with the browser extension with a similar name)? In which case, it is defin
by ldjb 11y ago
I assume you're talking about the <noscript> element (as opposed to something to do with the browser extension with a similar name)?
In which case, it is definitely worth making websites as usable as possible without JavaScript. <noscript> is supported by pretty much all web browsers, including iOS Safari.
Even if your website relies heavily on JavaScript, it is still a good idea to let non-JavaScript users know via a <noscript> element that JavaScript is required, instead of having the page look like a broken mess (or a blank screen).
Do also keep in mind that search engines (generally) do not run JavaScript, so if you want page content to be indexed, it has to be present on the page as it is rendered without JavaScript. <noscript> may help achieve that.
- userbinator 11y agoSeeing all the "This site requires JavaScript, please turn on JavaScript and refresh the page" messages I get makes me think of putting all your content in <noscript>s, and then adding a script that writes "For your privacy and security, this site requires that your browser not run JavaScript. Please disable JavaScript and refresh the page." followed by links to sites explaining the bad side of JS-on-by-default and how to turn it off with things like NoScript. Maybe it'll take off and people will understand, maybe not. But it's something worth pondering.