Why you might want to disable JavaScript

JavaScript is code that runs inside web pages to make them interactive — it powers animations, forms that respond when you type, and pages that load new content without refreshing. Disabling it stops all of that from working. Most people should leave JavaScript on, but you might turn it off to test whether a slow or broken page works without it, to block tracking scripts that follow you across sites, or to prevent certain ads from loading.

The tradeoff is real: many modern websites straightforward will not work without JavaScript. Gmail, Google Maps, YouTube, and most banking sites need it. If you disable JavaScript globally in Chrome, you will need to turn it back on for those sites to function, or use a different browser for them.

Chrome does not have a straightforward on-off toggle for JavaScript in the main settings menu anymore. Instead, you control it through site-by-site permissions or by using developer tools.

Key Takeaways

  • Chrome removed the global JavaScript toggle from settings, so you must disable it per site using the lock icon in the address bar or through developer tools.
  • Disabling JavaScript breaks most modern websites, including Gmail, Google Maps, YouTube, and banking sites.
  • The fastest method for a single site is clicking the lock icon next to the URL, selecting Cookies and data, and changing JavaScript to Block.
  • If you need JavaScript off for many sites, a browser extension designed for this purpose is faster than changing settings one site at a time.
  • You can test whether JavaScript is the problem on a broken page by opening developer tools and disabling it temporarily without changing your permanent settings.

Disable JavaScript for a single website

The quickest way to turn off JavaScript for one site is through the permissions menu. Click the lock icon or information icon next to the website address in the address bar — it appears on the left side of the URL.

A dropdown menu will appear. Look for "Cookies and data" or "Permissions" (the exact label varies by Chrome version). Click it to expand the full list. Find JavaScript in that list and change it from "Allow" to "Block". Refresh the page and JavaScript will no longer run on that site.

This setting sticks: the next time you visit that same domain, JavaScript will remain blocked unless you change it back. If the site breaks without JavaScript and you need it to work again, return to the lock icon and switch JavaScript back to "Allow".

Disable JavaScript using Chrome's developer tools

Developer tools let you turn JavaScript off temporarily without changing your permanent settings. This is useful for testing whether JavaScript is causing a problem on a page. Press Ctrl+Shift+J on Windows or Cmd+Option+J on Mac to open the console, or right-click anywhere on the page and select "Inspect".

Once developer tools are open, click the three vertical dots in the top right corner of the developer tools panel. Select "Settings". On the left sidebar, find "Debugger" and check the box next to "Disable JavaScript". The page will reload with JavaScript turned off for that session only.

When you close the developer tools or navigate away from the page, JavaScript turns back on automatically. This method does not change any of your Chrome settings — it is purely temporary and only affects the current page.

Use an extension to manage JavaScript across multiple sites

If you want to block JavaScript on many sites without visiting each one individually, a browser extension is faster. Extensions like uMatrix, NoScript, or ScriptSafe let you see which scripts are running on a page and block them with one click.

To install an extension, go to the Chrome Web Store, search for the extension name, and click "Add to Chrome". Once installed, an icon appears in your toolbar. Click it on any page to see a list of scripts and toggle them on or off. You can set rules that explore to all sites or just specific ones.

These extensions are more powerful than Chrome's built-in controls because they let you block individual scripts rather than all JavaScript at once. For example, you might block a tracking script but allow the JavaScript that makes the page interactive. The downside is that they require more setup and decision-making than a straightforward on-off switch.

Re-enable JavaScript when you need it

If you disabled JavaScript and a website no longer works, the fix is straightforward. Click the lock icon in the address bar again, find JavaScript in the permissions list, and change it back to "Allow". Refresh the page and it should work normally.

If you used developer tools to disable JavaScript, straightforward close the developer tools panel or uncheck the "Disable JavaScript" box in Settings. The page will reload with JavaScript active again.

If you installed an extension and want to turn JavaScript back on for a specific site, click the extension icon and toggle the scripts back on, or add the site to the extension's whitelist so scripts run there automatically.

When disabling JavaScript actually solves a problem

JavaScript is rarely the cause of a broken website — usually the problem is a network error, a server issue, or a browser compatibility problem. However, disabling JavaScript can help in a few real situations: a page loads slowly because of heavy tracking scripts, an ad network is crashing the page, or you are testing a website you built to see if the HTML and CSS work without the interactive layer.

If you disable JavaScript and the page still does not work, the problem is not JavaScript. Try clearing your browser cache, disabling extensions, or using a different browser. If the page works fine without JavaScript but you need it to work with JavaScript, the issue is likely a broken script or a conflict with an extension.

Frequently Asked Questions

Will disabling JavaScript make Chrome faster?

Slightly, but not noticeably for most people. Blocking JavaScript saves the time it takes to read and run scripts, but modern websites are usually slow because of images, videos, or network delays, not JavaScript. If a site feels faster without JavaScript, it is probably because the tracking scripts or ads are gone, not because JavaScript itself was the bottleneck.

Can I disable JavaScript for all sites at once?

Chrome does not offer a global toggle anymore. You can disable it per site using the lock icon, or use an extension to manage multiple sites at once. If you need JavaScript off everywhere, switching to a different browser like Firefox (which still has a global toggle in about:config) might be easier than managing Chrome site by site.

Does disabling JavaScript protect my privacy?

Partially. Blocking JavaScript stops some tracking scripts from running, but websites can still track you through cookies, server logs, and other methods. For real privacy protection, use a privacy-focused extension like uBlock Origin or Privacy Badger, which block ads and trackers without breaking the page.

What happens if I disable JavaScript on a banking website?

The site will not work. Banks require JavaScript for login forms, security checks, and account management. Never disable JavaScript on a banking site unless you are troubleshooting a specific problem, and turn it back on when ready after testing.

Can I disable JavaScript for ads only?

Not directly through Chrome's settings, but ad-blocking extensions like uBlock Origin or Adblock Plus do this automatically. They block ads without disabling all JavaScript, so the page still works normally while ads disappear. This is a better solution than disabling JavaScript if your goal is to remove ads.