Why you might want to disable JavaScript
JavaScript is a programming language that runs inside your browser and makes websites interactive — it powers things like dropdown menus, live chat boxes, and forms that respond as you type. Disabling it stops all of that from working, which sounds drastic, but there are real reasons someone might do it.
The main reason is security. Malicious websites can use JavaScript to steal data from your browser, redirect you to phishing sites, or install unwanted software. If you visit untrusted sites or suspect a page is compromised, turning off JavaScript cuts off one major attack vector. The second reason is performance: some websites load slowly because they run heavy JavaScript code, and disabling it can make them faster. A third reason is privacy: some tracking scripts rely on JavaScript to follow you across the web, though this is only a partial solution since tracking happens in other ways too.
The tradeoff is that most modern websites will break or become unusable without JavaScript. You will not be able to use Gmail, Google Maps, Facebook, or most online tools. This is why most people disable it only for specific sites, not globally.
Key Takeaways
- Chrome does not have a built-in on-off switch for JavaScript in the main settings menu — you must use Developer Tools or install an extension.
- The quickest method is to install an extension like uBlock Origin or NoScript that lets you toggle JavaScript per site without restarting Chrome.
- If you disable JavaScript globally through Developer Tools, it stays off until you turn it back on, and most websites will not work properly.
- Disabling JavaScript for one site does not affect other sites — each site's setting is separate.
Disable JavaScript for a single site using Developer Tools
This method turns off JavaScript only for the current page and does not require installing anything. Open the website you want to disable JavaScript on, then press Ctrl + Shift + J on Windows or Cmd + Option + J on Mac to open the Developer Tools console at the bottom of the screen.
At the top of the Developer Tools panel, click the three vertical dots (the menu icon), then select Settings. In the Settings panel, scroll down to the Debugger section and check the box next to Disable JavaScript. Close the Developer Tools by pressing the same keyboard shortcut again. The page will reload without JavaScript, and the setting applies only to that tab.
When you close the tab or navigate to a different site, JavaScript turns back on automatically. This method is temporary and does not persist across browser sessions, so it is useful for a quick test but not for ongoing protection.
Disable JavaScript globally using Chrome settings
To turn off JavaScript for all websites at once, you need to access Chrome's content settings. Click the three vertical dots in the top right corner of Chrome, then select Settings. On the left sidebar, click Privacy and security, then select Site settings.
In the Site settings menu, scroll down and click JavaScript. You will see a toggle at the top that says Allowed (recommended). Click that toggle to switch it to Blocked. From this point forward, JavaScript is disabled on every website you visit unless you add that site to an exception list.
To allow JavaScript on specific sites while keeping it blocked everywhere else, stay in the JavaScript settings page. Under the Blocked section, click Add and type the website address (for example, gmail.com). That site will now run JavaScript while all others remain blocked. You can add as many exceptions as you need.
Use an extension for easier per-site control
Extensions give you a button in your toolbar that lets you toggle JavaScript on and off for each site with a single click, without opening Developer Tools. uBlock Origin is a free ad and tracker blocker that also lets you disable JavaScript per site. Install it from the Chrome Web Store, then click its icon in your toolbar. At the bottom of the popup, you will see a power icon — click it to disable JavaScript for that site only.
NoScript is another free extension designed specifically for JavaScript control. It blocks all scripts by default and lets you whitelist sites you trust. After installing it, click the NoScript icon in your toolbar to see a list of scripts running on the current page and toggle them individually or block the entire site.
Both extensions remember your choices, so if you disable JavaScript for a site once, it stays disabled the next time you visit. You can change your mind at any time by clicking the extension icon again.
What happens when JavaScript is disabled
When you disable JavaScript on a website, interactive features stop working. Buttons that trigger actions may become unresponsive, forms may not submit, and pages may not load new content as you scroll. Some sites will display a message saying "JavaScript is required" and refuse to load at all. Others will show a basic, text-only version of the page.
Email services like Gmail, productivity tools like Google Docs, and maps services like Google Maps are almost entirely dependent on JavaScript and will not function without it. Social media sites, video players, and online shopping carts also rely heavily on it. If you disable JavaScript globally, you will need to add exceptions for any site you actually want to use.
Disabling JavaScript does not block ads or trackers that use other methods, such as pixel tracking or cookies. It is one layer of protection, not a complete privacy or security solution.
Re-enable JavaScript when you are done
If you disabled JavaScript globally through Chrome settings, go back to Settings > Privacy and security > Site settings > JavaScript and toggle it back to Allowed. Any exceptions you created will remain in the list, so you can delete them individually if you want to re-enable JavaScript on those sites.
If you used Developer Tools to disable JavaScript for a single tab, simply close that tab or reload the page. JavaScript will be back on. If you used an extension, click the extension icon and toggle JavaScript back on for that site.
Frequently Asked Questions
Will disabling JavaScript protect me from viruses?
It reduces one attack vector — malicious scripts cannot run if JavaScript is off. However, viruses and malware can spread through other methods, such as malicious downloads or compromised plugins. Disabling JavaScript is one part of staying safe, not a complete solution. Keep your browser and operating system updated, and use antivirus software.
Can I disable JavaScript for ads only?
Not directly. However, ad networks rely on JavaScript to load and track ads, so disabling JavaScript will stop most ads from appearing. If you want to block ads without breaking websites, use an ad blocker extension like uBlock Origin instead, which blocks ads while leaving JavaScript enabled for the site to function.
Does disabling JavaScript make Chrome faster?
It can, but only on sites that run heavy JavaScript code. Most modern websites are optimized well enough that you will not notice a speed difference. If a specific site feels slow, disabling JavaScript for that site might help, but it will also break features on that site.
What is the difference between disabling JavaScript and using an ad blocker?
Disabling JavaScript stops all scripts from running, which breaks most websites. An ad blocker removes ads and trackers while letting the site's core JavaScript run. For most people, an ad blocker is a better choice because it protects privacy without sacrificing functionality.
If I disable JavaScript globally, will I have to add exceptions for every site I use?
Yes. Most websites need JavaScript to work, so you will need to add exceptions for Gmail, Google Maps, social media, streaming services, and any other interactive site you visit regularly. This is why global JavaScript disabling is rarely practical for everyday browsing.