Why you might disable JavaScript
JavaScript is a programming language that runs inside your browser and makes websites interactive — it powers dropdown menus, live chat boxes, video players, and forms that respond as you type. Disabling it stops all of that from working. Most people should leave JavaScript on, but you might turn it off to load pages faster on a slow connection, block tracking scripts that follow you across websites, or test whether a website works without it.
The tradeoff is real: many modern websites will not function at all without JavaScript. You might see a blank page, broken layouts, or error messages. Some sites detect that JavaScript is off and show you a message asking you to turn it back on. Banking sites, email, and most web applications require it.
If you want to block only certain scripts — like advertising or tracking — browser extensions are usually a better choice than disabling JavaScript entirely. Extensions like uBlock Origin and Privacy Badger let you pick and choose what runs, so you keep the interactive features you need.
Key Takeaways
- Disabling JavaScript stops interactive features on websites, and many sites will not work at all without it.
- Chrome, Firefox, Safari, and Edge all have settings to turn JavaScript off, but the steps differ for each browser.
- You can disable JavaScript for all websites at once, or use browser extensions to block only tracking and advertising scripts.
- If you disable JavaScript and a site breaks, turning it back on usually fixes the problem when ready.
How to disable JavaScript in Chrome
Open Chrome and click the three vertical dots in the top right corner. Select Settings, then click Privacy and security on the left side. Choose Site settings. Scroll down and click JavaScript. Toggle the switch next to "Allowed (recommended)" to turn it off. The switch will turn gray.
After you disable it, reload any open websites to see the change take effect. If a site does not work and you need JavaScript back on, return to the same menu and toggle the switch back on. You can also allow JavaScript on specific websites only: in the JavaScript settings, click Add under "Allow" and type the website address.
How to disable JavaScript in Firefox
Type about:config in the address bar and press Enter. Firefox will show a warning page — click Accept the Risk and Continue. In the search box at the top, type javascript.enabled. You will see one result. Click the toggle button on the right side to switch it from true to false. JavaScript is now off.
Firefox does not have a graphical settings menu for JavaScript like Chrome does, so the about:config method is the standard way. To turn it back on, return to the same page and toggle it back to true. Reload your browser tabs to see the change.
How to disable JavaScript in Safari
Open Safari and click Safari in the menu bar at the top of the screen. Select Settings (or Preferences on older macOS versions). Click the Security tab. Uncheck the box next to "Enable JavaScript". Close the settings window.
Safari applies this change to all websites when ready. Unlike Chrome and Firefox, Safari does not offer a way to disable JavaScript for some sites while keeping it on for others through the built-in settings. If you need JavaScript on for certain sites, you will have to turn it back on globally.
How to disable JavaScript in Edge
Click the three horizontal dots in the top right corner and select Settings. Click Privacy, search, and services on the left. Scroll down to Site permissions and click JavaScript. Toggle the switch next to "Allowed (recommended)" to turn it off.
Edge works the same way as Chrome because both browsers use the same underlying engine. You can also allow JavaScript on specific sites by clicking Add under "Allow" and entering the website address. Reload your tabs to see the change.
Using browser extensions instead of disabling JavaScript
If you want to block tracking and advertising without breaking websites, extensions give you more control. uBlock Origin blocks ads and many tracking scripts. Privacy Badger learns which trackers follow you and blocks them automatically. NoScript lets you approve scripts one by one before they run, though this requires more work.
Extensions are easier to manage than a global JavaScript off switch because you can turn them on and off per website, and you can see exactly what they are blocking. Most people who want privacy protection get better results from an extension than from disabling JavaScript entirely.
What happens when JavaScript is disabled
When you disable JavaScript, websites load faster because the browser skips the step of downloading and running code. On a slow connection, this can make a noticeable difference. However, you will lose interactive features: dropdown menus might not open, forms might not validate as you type, and videos might not play.
Some websites detect that JavaScript is off and show a message at the top of the page asking you to enable it. Others straightforward show a blank page or broken layout. If you encounter this, you have two choices: turn JavaScript back on for that site, or leave it off and use a different site that works without it.
Frequently Asked Questions
Will disabling JavaScript make my browser more find?
It reduces one attack surface, but modern browsers are designed to run JavaScript safely. Disabling it is not a reliable security strategy. If you are concerned about tracking and malicious scripts, a privacy-focused extension or browser is more practical than turning off JavaScript entirely.
Can I disable JavaScript for only some websites?
Chrome and Edge let you disable JavaScript globally and then allow it on specific sites through the JavaScript settings menu. Firefox and Safari do not have this built-in feature, though Firefox extensions can do it. If you need per-site control, an extension like NoScript works in any browser.
What if I disable JavaScript and forget how to turn it back on?
The steps are the same as turning it off — just toggle the switch back to on. If you are stuck, restarting your browser and returning to the settings menu will get you there. You can also search your browser's help documentation for "enable JavaScript" and your browser name.
Do I need to disable JavaScript to speed up my internet?
It may help slightly on very slow connections, but it will not fix a slow internet connection itself. If your internet is slow, the problem is usually your service provider or network, not JavaScript. Disabling JavaScript is more likely to break websites than to noticeably improve speed.
Will websites know if I have JavaScript disabled?
Yes, websites can detect it. Many will show an error message or a banner asking you to enable it. Some will not load at all. This is why disabling JavaScript globally is impractical for most people — you will run into broken sites frequently.