I'm currently building a project and I would like to make use of some simple javascript - I know some people have it disabled to prevent XSS and other things. Should I...
a) Use the simple javascript, those users with it disabled are missing out
b) Don't use the simple javascript, users with it enabled have to click a little more
c) Code both javascript-enabled and javascript-disabled functionality
I'm not really sure as the web is always changing, what do you recommend?
In a nutshell, disabling JavaScript makes the browsing experience safer, but it also comes at a cost to the user experience. If you struggle to navigate through a website and find some elements broken, it is most likely because you disabled JavaScript for the web page.
If you disable JavaScript, you may be unable to use certain features on a website. In other cases, the website may even break completely, or you'll be stuck using an incredibly old version of the page. For example, Gmail offers a very basic plain HTML mode for people with JavaScript disabled.
After crunching the numbers, we found a consistent rate of JavaScript-disabled requests hovering around 1% of the actual visitor traffic, with the highest rate being roughly 2 percent in the United States and the lowest being roughly 0.25 percent in Brazil.
Degrade gracefully - make sure the site works without JavaScript, then add bells and whistles for those with JavaScript enabled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With