Disable JavaScript for all websites at once

You can turn off JavaScript in Chrome through the Settings menu. This stops scripts from running on every website you visit until you turn it back on. The setting is buried a few clicks deep, but the process takes less than a minute.

Open Chrome and click the three vertical dots in the top right corner. Select Settings from the menu. On the left side, 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 you will see "Blocked" appear below it.

Close the Settings tab. JavaScript is now disabled across Chrome. When you visit a website that needs JavaScript to work, you will see blank areas, missing buttons, or error messages instead of the full page.

Key Takeaways

  • You can disable JavaScript for all websites by going to Settings > Privacy and security > Site settings > JavaScript and toggling the switch off.
  • Disabling JavaScript breaks many modern websites — you will see missing content, broken layouts, and non-functional buttons on most pages.
  • You can turn JavaScript back on for individual websites by clicking the lock icon in the address bar and changing the JavaScript setting for that site only.
  • If a website stops working after you disable JavaScript, the site almost certainly needs scripts to function properly.

Turn JavaScript back on for specific websites

If you disabled JavaScript globally but need it on for certain sites, you can allow it for just those pages. Visit the website that needs JavaScript. Click the lock icon or information icon to the left of the web address in the address bar. Click Site settings.

Find the JavaScript row. Click the dropdown that currently shows "Blocked" and select Allow. Close the settings panel. Refresh the page. JavaScript will now run on that website only, while staying disabled everywhere else.

You can repeat this for as many websites as you need. Each site remembers its own setting, so you will not have to change it again the next time you visit.

Why websites break when JavaScript is off

Most modern websites rely on JavaScript to display content, handle clicks, load images, and respond to what you type. Without it, the page shows only the basic HTML structure — usually just text and broken layouts. Buttons do not work. Menus do not open. Videos do not play. Forms do not submit.

Some older or very simple websites still work without JavaScript because they were built to function that way. But Gmail, Google Maps, Facebook, Twitter, YouTube, and almost every other major site will be partially or completely broken. You will see blank spaces where content should be, or the page will refuse to load at all.

If you disabled JavaScript to test whether a website works without it, the answer for most sites is: it does not. If you disabled it for security reasons, understand that you are trading functionality for a small reduction in risk.

Re-enable JavaScript for all websites

To turn JavaScript back on globally, return to Settings > Privacy and security > Site settings > JavaScript. Click the toggle switch next to "Blocked" to turn it back on. The switch will turn blue, and the status will change to "Allowed (recommended)".

Any individual site settings you created while JavaScript was disabled will remain in place. If you allowed JavaScript on specific websites, those sites will keep that permission even after you re-enable it globally. If you want to clear those individual settings, you can do so from the same JavaScript page by clicking the three dots next to each site and selecting Remove.

Check whether a specific site has JavaScript enabled

Visit the website. Click the lock icon or information icon to the left of the address bar. Look for the JavaScript row. If it shows "Allow", JavaScript is on for that site. If it shows "Block", JavaScript is off. If you see no JavaScript row at all, the site is using the global setting you chose in Settings.

If a website is not working and you suspect JavaScript is the problem, check this setting first. If it is blocked, change it to "Allow" and refresh the page.

Differences between disabling JavaScript and using an extension

Chrome's built-in JavaScript setting is permanent until you change it. Browser extensions like uBlock Origin or NoScript give you more control — they let you block JavaScript on a per-site basis without visiting Settings, and they often let you block only certain scripts while allowing others.

Extensions are useful if you want to disable JavaScript on most sites but allow it on a few. The built-in setting is simpler if you want to disable it everywhere or everywhere except a handful of sites. Extensions also take up memory and can slow Chrome down slightly, while the built-in setting has no performance cost.

If you are trying to block ads or trackers specifically, an ad blocker extension usually works better than disabling JavaScript entirely, because it targets the problem scripts without breaking the whole page.

Frequently Asked Questions

Will disabling JavaScript make Chrome faster?

Not noticeably. JavaScript does use some processing power, but the performance gain from disabling it is usually too small to feel. You will notice the slowdown from broken websites much more than any speed improvement.

Is disabling JavaScript safer?

Slightly, but not by much. JavaScript can be used to steal data or run malware, but so can other parts of a website. Disabling JavaScript stops one category of attack but leaves you exposed to many others. A password manager and keeping Chrome updated protect you far more than disabling JavaScript.

Why does the setting say "Allowed (recommended)"?

Because most websites need JavaScript to work. Google recommends leaving it on. If you have a specific reason to disable it, that is fine, but understand that you are going against the default for a reason.

Can I disable JavaScript for ads only?

Not with Chrome's built-in setting — it is all or nothing per site. An ad blocker extension like uBlock Origin can block ads and their scripts while leaving other JavaScript running. That is a better solution if ads are your concern.

What happens to my passwords and saved data if I disable JavaScript?

Nothing. Disabling JavaScript does not affect your saved passwords, browsing history, or any data Chrome stores. It only stops scripts from running on web pages.