Why you might want to disable JavaScript
JavaScript is code that runs inside your browser to make websites interactive — it powers things like dropdown menus, live search results, and video players. Most of the time you want it on. But sometimes you might disable it to load pages faster, to stop certain ads or tracking scripts, or to test whether a website works without it.
Disabling JavaScript in Chrome is straightforward and takes about 30 seconds. The setting applies to all websites unless you create exceptions for specific ones. If a site stops working after you turn it off, you can turn it back on just as quickly.
Key Takeaways
- JavaScript is disabled through Chrome Settings under Privacy and Security, not through a browser button or menu.
- When you disable JavaScript, it affects every website you visit until you turn it back on again.
- You can create exceptions so that specific websites still run JavaScript while others do not.
- Many modern websites require JavaScript to work at all, so disabling it may break features or prevent pages from loading.
Steps to 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. You will see a list of permissions Chrome manages — scroll down until you find JavaScript.
Click on JavaScript. You will see a toggle switch next to "Allowed (recommended)". Click the toggle to turn it off. The switch will turn gray and the text will change to "Not allowed". Close the Settings tab. JavaScript is now disabled on all websites.
How to turn JavaScript back on
Follow the same path: three dots menu → Settings → Privacy and security → Site settings → JavaScript. Click the toggle switch again to turn it back on. The switch will turn blue and show "Allowed (recommended)".
If you only disabled JavaScript recently and a website is not working, try refreshing the page after you turn JavaScript back on. Some sites cache content and may need a fresh load to run their scripts.
Creating exceptions for specific websites
You do not have to disable JavaScript everywhere. If you only want to block it on certain sites, you can create exceptions. Go to Settings → Privacy and security → Site settings → JavaScript. Under "Not allowed", you will see a section to add sites.
Click Add next to "Not allowed" and type the website address — for example, example.com. Click Add. That website will now block JavaScript while all others run it normally.
If you disabled JavaScript globally but want to allow it on specific sites, click the toggle to turn JavaScript back on for all sites first. Then go to the same menu and look for "Allowed" at the top. Click Add and enter the sites where you want to block it instead.
What happens when JavaScript is disabled
Many websites will not work properly without JavaScript. Pages may load but buttons will not respond, search boxes will not function, videos will not play, and some content may not appear at all. Some sites will show a message saying "Please enable JavaScript" or will refuse to load entirely.
News sites, email, maps, and social media all rely heavily on JavaScript. straightforward text-based websites like old forums or documentation pages usually work fine without it. If you disable JavaScript and find yourself unable to use a site you need, the fastest fix is to turn it back on.
Checking whether JavaScript is on or off
Chrome does not show you a visible indicator that JavaScript is disabled. The only way to know for certain is to go back to Settings → Privacy and security → Site settings → JavaScript and check the toggle switch. If it is gray, JavaScript is off. If it is blue, JavaScript is on.
Another way to test is to visit a website that requires JavaScript — Gmail, Google Maps, or Twitter are reliable tests. If the page loads but looks broken or incomplete, JavaScript is probably disabled. If the page works normally, it is on.
Frequently Asked Questions
Does disabling JavaScript make Chrome faster?
It can make individual pages load slightly faster because the browser does not have to read and run JavaScript code. However, the difference is usually small — a few hundred milliseconds on most sites. The tradeoff is that many sites will not work properly, so the speed gain is rarely worth it for everyday browsing.
Will disabling JavaScript protect me from viruses or hackers?
It reduces one attack surface, since malicious JavaScript cannot run on your computer. However, it is not a complete security solution. Viruses and hacking attempts come through many routes. Using a strong password, keeping Chrome updated, and not downloading files from untrusted sources are more effective protections.
Can I disable JavaScript on my phone's Chrome?
Chrome on Android and iPhone does not have a built-in setting to disable JavaScript globally. You can only manage JavaScript through site-specific permissions on mobile, and most sites will not let you block it. If you need to disable JavaScript on a phone, you would need to use a different browser that offers this feature.
What if a website says I need to enable JavaScript but I already have it on?
The site may be checking for JavaScript in a way that does not work with your browser version or extensions. Try refreshing the page, clearing your browser cache (Settings → Privacy and security → Clear browsing data), or disabling Chrome extensions temporarily to see if one of them is blocking JavaScript.
Does disabling JavaScript affect my passwords or saved information?
No. Your passwords, autofill data, and saved information are stored separately from JavaScript settings. Disabling JavaScript will not erase or change any of that data. When you turn JavaScript back on, everything will still be there.