Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics (Retired) Introducing JavaScript Where Does JavaScript Go?

Aaron Coursolle
Aaron Coursolle
18,014 Points

How many users do you think have their JavaScript disabled? And for best practices...

...what steps, if any, should we take to accommodate them?

2 Answers

a report from 2010 states that about 2% of users have javascript turned off...That was 5 years ago I would say that number has gone down as websites have turned to javascript to do more and more. In order to accomodate as many users as possible try to do as many things as you can through good use of html and css and focus on maintaining usability without the use of javascript with RESTful api's. I wouldnt be too overly concerned about it as most people currently have javascript enabled in their browsers. Read the following link for further info.

http://stackoverflow.com/questions/822872/do-web-sites-really-need-to-cater-for-browsers-that-dont-have-javascript-enable

You can also use the noscript html tag to show users a notice that lets them know they need to enable JS for your website and how to turn it on.

ex.

<noscrip>
  <div class="notice--warning">JavaScript is off. Please enable to view full site.</div>
</noscript>