âMust Work Without JavaScriptâ
Published on Sep 5, 2019 (updated Apr 22, 2024), filed under development, javascript (feed). (Share this on Mastodon or Bluesky?)
Iâm currently busy with other things but reading CSS-Tricks discuss JavaScript support requirements I felt I could just release the draft that I had been working on. There are different views on the matter; whether different data have turned up I could not tell, but letâs see what conversations will yield.
That websites should work without JavaScriptâdisplay and function acceptablyâhas a long professional tradition, and for apps much the same has often been asked for. Yet with the success and ubiquity of script-based apps, where much thatâs important on the Web uses scripting (typically ECMAScript, JavaScript), how relevant is it to make sure sites and apps âwork without JavaScriptâ?
I intend to show that this requirement is not relevant anymore: In times of JavaScript being used and supported everywhere, it has nothing to do with user (or bot) needs anymore.
To start, letâs look at some data. How often is JavaScript actually disabled by users, so to consider a professional necessity of sites to work with no scripting?
- 2010: 0.25â2% (country-specific)
- (2012: 1.4% of screenreader users)
- 2013: 0.2%
- 2016: 0.2% in the United Kingdom
Note that data are sparse, with MediaWiki and others also sporting the same stats, essentially.
To go deeper, are there user agents, including assistive technologies, in which JavaScript is disabled by default, possibly forcing us to ensure no-script support? Where?
Nowhere it seems, apart from text browsers (quite evidently).
Are major search engines requiring no-script sites or apps?
The really big ones are Google and Bing as well as, notably in their countries, Baidu in China and Yandex in Russiaâso sites not depending on Baidu donât appear to face any problems on this front, either. The Googlebot is evergreen since this year, Bingbot is generally capable of rendering JavaScript, and Yandex long started to handle JavaScript, too. Baidu, however, may rely on the only major bot that canât deal with JavaScript yet.
And, who actually says that sites or apps need to work without JavaScript (and when did they say that)?
The demand almost appears mythical by now, with only WebAIM sharing how and that âWCAGÂ 1.0 from 1999 required that pages be functional and accessible with scripting disabled, WCAGÂ 2.0 and all other modern guidelines allow you to require JavaScript.â
Although, as in other cases, we need more data, what we find paints a rather clear picture:
Already almost a decade ago, only every 500th user would disable JavaScriptâand though we donât know what requests translate to users, nor what the intent was, we can suspect that these requests do not all mean different users with critical needs.
Only text browsers would not support JavaScript, and no one who wouldnât know the implications uses text browsers.
No major western search engine canât deal with JavaScript.
No major standard requires to make sure sites and apps function without JavaScript being supported.
This may not be all on the subjectâI may have missed somethingâbut what this suggests is one thing: With few exceptions proving the rule (currently web apps targeting China as well as internal applications with special needs), and without endorsing irresponsible use of JavaScript, âmust work without JavaScriptâ is deprecated; âmust work without JavaScriptâ is dead. Beginning with checklists we should stop promoting and propagating it.
About Me
Iâm Jens (long: Jens Oliver Meiert), and Iâm a web developer, manager, and author. Iâve been working as a technical lead and engineering manager for companies youâve never heard of and companies you use every day, Iâm an occasional contributor to web standards (like HTML, CSS, WCAG), and I write and review books for OâReilly and Frontend Dogma.
I love trying things, not only in web development and engineering management, but also in other areas like philosophy. Here on meiert.com I share some of my experiences and views. (I value you being critical, interpreting charitably, and giving feedback.)