Why you might want to disable JavaScript
JavaScript is code that runs inside web pages to make them interactive — it powers things like dropdown menus, live search suggestions, and video players. Disabling it stops all that code from running. Most modern websites need JavaScript to work properly, so turning it off will break many sites you visit. People disable it mainly to test whether a website works without it, to speed up browsing on very slow connections, or to block certain tracking scripts.
Before you disable JavaScript, understand that you will lose functionality on most sites. Pages may not load completely, buttons might not work, and some content will disappear. If a site stops working after you disable JavaScript, the first step is to turn it back on.
Key Takeaways
- You can disable JavaScript in Chrome through Settings > Privacy and Security > Site Settings > JavaScript, then toggle it off.
- Disabling JavaScript globally breaks most modern websites, so consider using it only for testing or specific sites.
- You can disable JavaScript for just one website by visiting that site's settings instead of turning it off for all sites.
- If a website stops working after you disable JavaScript, turn it back on — that is usually the fix.
- Chrome extensions can block JavaScript on specific sites without affecting your entire browser.
Disable JavaScript for all websites
Open Chrome and click the three vertical dots in the top right corner. Select Settings from the menu that appears.
On the left side of the Settings page, click Privacy and security. Then click Site Settings. Scroll down until you see JavaScript and click it. Toggle the switch next to "Allowed (recommended)" to turn it off. The switch will turn gray, and the text will change to "Blocked".
Close the Settings tab. JavaScript is now disabled on every website you visit in Chrome. You will notice immediately that many sites look broken or do not work as expected. To turn it back on, follow the same steps and toggle the switch back to "Allowed".
Disable JavaScript for just one website
If you want to disable JavaScript only on a specific site, you do not need to turn it off globally. Visit the website where you want to block JavaScript. Click the lock icon or information icon to the left of the web address in the address bar.
Click Site Settings. Find JavaScript in the list and click it. Select Block from the dropdown menu. Close this window. JavaScript is now blocked only on that website, while remaining enabled everywhere else.
The next time you visit that site, JavaScript will stay blocked. If the site stops working and you need JavaScript to run there, return to the same menu and change JavaScript back to "Allow".
Use an extension to block JavaScript selectively
Chrome extensions give you more control than the built-in settings. uBlock Origin and NoScript are two popular extensions that let you block JavaScript on specific sites without affecting your whole browser. These extensions show you which scripts are trying to run on each page and let you allow or block them one at a time.
To install an extension, open Chrome and go to chrome.google.com/webstore. Search for the extension name, click it, and click Add to Chrome. Confirm by clicking Add extension. The extension icon will appear in your toolbar. Click it to see options for blocking scripts on the current page.
Extensions are useful if you want to block JavaScript on some sites but not others, or if you want to block only certain scripts while allowing others. They give you more precision than the all-or-nothing approach of the Settings menu.
What breaks when JavaScript is disabled
Most websites built in the last ten years rely on JavaScript for core features. When you disable it, expect dropdown menus to stop working, search boxes to not filter results, and pages to not load new content when you scroll. Video players often will not work. Forms may not submit. Some pages will show blank areas where content should be.
Social media sites, email services, and online tools like Google Docs will not function at all without JavaScript. News sites and shopping sites will load but lose interactive features. Even simple things like expanding a menu or clicking a button might fail.
This is why most people do not disable JavaScript permanently. It is useful for testing whether a site works without it, or for blocking specific tracking scripts through an extension, but disabling it globally makes normal browsing difficult.
Turn JavaScript back on
If you disabled JavaScript and now websites are broken, the fix is simple. Go back to Chrome Settings > Privacy and security > Site Settings > JavaScript and toggle the switch back to "Allowed". Refresh the page you were on, and it should work again.
If you blocked JavaScript on a single site and want to unblock it, visit that site, click the lock or information icon, go to Site Settings, find JavaScript, and change it from "Block" to "Allow". If you used an extension to block scripts, click the extension icon and look for an option to allow scripts on that page.
Frequently Asked Questions
Will disabling JavaScript make Chrome faster?
It may make pages load slightly faster because Chrome does not have to run code, but the difference is usually small. Most of the time you spend on a page is waiting for images and videos to load, not waiting for JavaScript to run. Disabling JavaScript is not an effective way to speed up browsing on modern internet connections.
Can I disable JavaScript on YouTube?
You can, but YouTube will not work. The video player, search, and almost everything on YouTube runs on JavaScript. If you disable it globally or block it on YouTube specifically, the site will be unusable. You would need to turn JavaScript back on to watch videos.
Does disabling JavaScript protect my privacy?
It blocks some tracking scripts, but not all. Many trackers use other methods that do not rely on JavaScript. If privacy is your concern, an extension like uBlock Origin or Privacy Badger is more effective than disabling JavaScript entirely, because they block trackers while letting websites still work.
What is the difference between disabling JavaScript in Settings and using an extension?
Settings disables JavaScript for all sites or one site at a time, with no middle ground. Extensions let you see which scripts are running and block only the ones you choose, so you can block trackers while allowing the scripts that make a site work. Extensions give you more control.
If I disable JavaScript, will websites know?
Yes, websites can detect that JavaScript is disabled because the code simply does not run. Some sites will show you a message saying JavaScript is required. Others will load a basic version of the page without interactive features. Websites cannot force JavaScript to run if you have disabled it.