Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it worth it to code different functionality for users with javascript disabled?

Tags:

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?

like image 796
Logan Serman Avatar asked Dec 03 '08 15:12

Logan Serman


People also ask

Is disabling JavaScript good?

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.

What will happen if user turns off JavaScript?

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.

What percentage of users disable JavaScript?

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.


1 Answers

Degrade gracefully - make sure the site works without JavaScript, then add bells and whistles for those with JavaScript enabled.

like image 76
orip Avatar answered Sep 17 '22 15:09

orip