You can disable JavaScript in Chrome through Settings, but the process is buried a few clicks deep
Open Chrome and click the three vertical dots in the top right corner. Select Settings, then Privacy and security on the left sidebar. Click Site settings, then scroll down and click JavaScript. Toggle the switch to Off. From that point forward, JavaScript will not run on any website you visit unless you turn it back on.
That said, disabling JavaScript site-wide breaks most modern websites. Your email won't load properly. Google Maps won't work. Online banking becomes nearly impossible. Most people who turn off JavaScript do it selectively — they block it on specific websites they don't trust, rather than everywhere at once.
If you want to block JavaScript only on certain sites, follow the same steps above but stop at the JavaScript page. Instead of toggling the main switch, scroll down to Block and click Add. Type the website address you want to block (for example, example.com) and click Add. JavaScript will stay off on that site only.
Key Takeaways
- Disabling JavaScript globally in Chrome requires going to Settings > Privacy and security > Site settings > JavaScript and toggling the switch off.
- Turning off JavaScript everywhere breaks most websites, so blocking it on specific sites you distrust is usually more practical.
- To block JavaScript on just one site, use the Block option under the JavaScript settings instead of the global toggle.
- You can turn JavaScript back on at any time using the same Settings path, either globally or for individual sites.
Why someone might disable JavaScript
JavaScript is a programming language that runs inside your browser and lets websites do things like show you notifications, track where you click, or load new content without refreshing the page. It is also the tool most websites use to track your behavior — which pages you visit, how long you stay, what you click on.
Disabling JavaScript on a specific website can slow down that tracking. It does not stop it entirely — websites can still see your IP address, what pages you request, and how long you stay — but it removes one layer of monitoring. Some people disable it on ad networks or data brokers they recognize in their browser history.
JavaScript is also sometimes the vector for malicious code. A compromised website or an ad network serving malware can use JavaScript to install unwanted software or steal passwords. Turning it off on sites you do not recognize reduces that risk, though it is not a complete defense.
What breaks when you disable JavaScript
Almost every modern website relies on JavaScript to function. Gmail, Google Maps, Slack, Figma, Notion — these do not work at all without it. News sites will load text but not images or videos. Shopping sites will show you products but not let you add them to your cart. Social media feeds will not scroll or load new posts.
Some older, simpler websites — like a basic blog or a government form page — will still work fine. But you will not know which sites fall into that category until you try them. Most people who disable JavaScript globally end up turning it back on within hours because they cannot do their actual work.
Using Chrome extensions as an alternative
If you want more control over JavaScript without breaking everything, consider using an extension instead. uBlock Origin (free, open source) and NoScript (free) both let you block JavaScript on specific sites with one click, and you can whitelist sites you trust. This gives you the same protection as disabling JavaScript selectively, but with a faster workflow.
Extensions also let you see which scripts are running on a page before you decide whether to block them. uBlock Origin shows you a list of all the domains trying to load code on the current site. You can then block just the ad networks or trackers, leaving the site's own JavaScript intact so the page still works.
How to turn JavaScript back on
If you disabled JavaScript globally and now websites are broken, go back to Settings > Privacy and security > Site settings > JavaScript and toggle the switch back to On. If you blocked JavaScript on specific sites, click the Block section under JavaScript settings, find the site you want to unblock, click the three dots next to it, and select Remove.
Chrome will remember your choice when ready. You do not need to restart the browser or refresh the page — though refreshing the page will let you see the change take effect right away.
The trade-off between convenience and privacy
Disabling JavaScript is a real privacy tool, but it comes with a real cost: most of the internet stops working. The websites you use every day — your bank, your email, your job — all depend on JavaScript to function. Blocking it everywhere is like removing the locks from your doors to prevent burglary; you have solved one problem by creating a much bigger one.
A more practical approach is to disable JavaScript only on sites you do not use regularly and do not trust. Block it on ad networks if you recognize them. Block it on data broker sites. Block it on sketchy forums or read sites. Leave it on for the sites you actually need to use. That way you get some privacy benefit without sacrificing the ability to work, bank, or communicate.
Frequently Asked Questions
Will disabling JavaScript make Chrome faster?
Slightly, but not noticeably. JavaScript does use CPU and memory, so turning it off reduces that load. In practice, the slowdown from JavaScript is usually small compared to the slowdown from images, videos, and ads. You will see a bigger speed improvement by blocking ads or using a faster internet connection.
Does disabling JavaScript protect me from viruses?
It reduces one attack vector, but it is not a complete defense. Malware can spread through other means — malicious downloads, compromised plugins, phishing emails. Disabling JavaScript helps, but you still need antivirus software, regular updates, and caution about what you read.
Can websites tell if I have JavaScript disabled?
Yes. Websites can detect whether JavaScript is running and will often show you a message saying "Please enable JavaScript to use this site." Some sites will refuse to load at all. This is why blocking JavaScript on specific sites is more practical than disabling it everywhere.
Is there a way to block JavaScript on ads but not on the website itself?
Yes, but it requires an extension like uBlock Origin or NoScript. These tools let you see which domains are trying to load scripts and block only the ones you choose. You can block ad networks while allowing the site's own JavaScript to run, so the page works normally but the ads do not track you.
What is the difference between disabling JavaScript and using private browsing?
Private browsing (Incognito mode) deletes your cookies and browsing history when you close the window, but websites can still track you while you are browsing. Disabling JavaScript blocks one tracking method. They work differently and solve different problems — you can use both at the same time.