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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Lorenzo Minto](https://secure.gravatar.com/avatar/c53c06310889409dbc0bae6daa635a95?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Lorenzo Minto
13,898 PointsWhat happens if someone deactivates the javascript and my site highly relies on jQuery plugins to display content?
In all browser you have the option to switch the javascript off, right?
4 Answers
![Ferdinand Pretorius](https://uploads.teamtreehouse.com/production/profile-photos/2106472/micro_profile_pic.jpg)
Ferdinand Pretorius
18,705 PointsThere's a web-design philosophy known as Progressive Enhancement which is one you should consider. The idea is you build a basic site that is usable and workable, and then you layer onto this enhancements like jQuery and browser-specific stuff to "enhance" it. This way you get a site that works for everybody and looks nice for the majority.
If that doesn't convince you, then consider other reasons for having a site work without javascript:
It is more SEO friendly. If your site relies on JS for content and links then chances are search-engines will be ignoring large chunks of it.
Imagine you are an eCommerce site selling widgets. Now, even if only 5% of your customers disable javascript, that is a potential sales loss of 5%. Is it worth losing customers over?
Don't discriminate against the disabled. Relying on javascript means your site is not accessible and, in some cases (such as government/public sector sites), you could be breaking the law by discriminating against people.
![Ferdinand Pretorius](https://uploads.teamtreehouse.com/production/profile-photos/2106472/micro_profile_pic.jpg)
Ferdinand Pretorius
18,705 PointsHi Lorenzo,
jQuery is a JavaScript library, if JS is turned of in the browser, anything depending on it will not work.
There are way too many browsers for me to say that all of them has the option to turn it off, however most popular browsers do have the option.
Hope this helps, feel free to ask if you have any more questions on the matter or need a more in-depth answer.
![Lorenzo Minto](https://secure.gravatar.com/avatar/c53c06310889409dbc0bae6daa635a95?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Lorenzo Minto
13,898 PointsYes I had already figured out that the jQuery would also not work but what I was worried about is that in some cases (certain kinds of plugins) the whole page can potentially break down without the JS, say you have a Carousel, without the JS some slides would not show at all. Is there a way to prevent that?
![Stephen Gheysens](https://uploads.teamtreehouse.com/production/profile-photos/1599822/micro_Stephen-Gheysens.jpg)
Stephen Gheysens
11,935 PointsFerdinand is right, it's often an option, but JavaScript is much less commonly blocked by default in today's world. That aside, it's good practice to follow "progressive enhancement" techniques. Essentially, it's keeping in mind that the content (like the text, images, etc. within the HTML) should take precedence, then styling (from CSS), and then extra functionality (from JavaScript and similar technologies). There are a couple of Treehouse lessons on front-end optimization that may touch on this.
The Wiki entry for PE https://en.wikipedia.org/wiki/Progressive_enhancement
![Ferdinand Pretorius](https://uploads.teamtreehouse.com/production/profile-photos/2106472/micro_profile_pic.jpg)
Ferdinand Pretorius
18,705 PointsKudos for the wiki link ( and the extra input :) )
![kareem Pierre](https://uploads.teamtreehouse.com/production/profile-photos/300512/micro_me.jpg)
kareem Pierre
Full Stack JavaScript Techdegree Student 20,263 PointsIf your using good plugins then they should have a fallback in place. If not then you would have to approach the situation by building the app with no javascript in mind. Once done you can then add javascript features. The reason for this is if someone visits your site and they don't have javascript enabled, your site will fall back to the static structure already in place.