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 search suggestions, and video players. Disabling it stops websites from running this code, which can speed up older computers, reduce tracking, or prevent certain ads from loading. However, most modern websites need JavaScript to work at all, so disabling it site-wide usually means breaking the pages you visit.
The practical choice for most people is not to disable JavaScript entirely, but to turn it off only for specific websites that annoy you, or to use browser extensions that block certain types of JavaScript (like tracking scripts) while leaving the rest alone. If you do want to disable it completely, the steps differ by browser and take less than a minute.
Key Takeaways
- Disabling JavaScript entirely will break most websites, so consider blocking only tracking scripts or ads instead using an extension.
- Chrome, Firefox, Edge, and Safari all have settings to turn JavaScript off, but the location and method differs for each browser.
- You can disable JavaScript for one website at a time in most browsers, which is more useful than turning it off globally.
- If you disable JavaScript and a website stops working, turning it back on takes the same few steps in reverse.
Disable JavaScript in Chrome
Chrome does not have a straightforward on-off switch for JavaScript in the main settings menu. Instead, you must use Developer Tools, which is a hidden panel built into the browser. Open any webpage, then press Ctrl + Shift + J on Windows or Cmd + Option + J on Mac to open the Console tab. In the top right corner of the Developer Tools panel, click the three vertical dots, then select Settings. On the left sidebar, click Experiments, then search for "disable javascript" and check the box next to Disable JavaScript. Close the Developer Tools by pressing the same keyboard shortcut again.
This method disables JavaScript for the current tab only. If you close the tab and open a new one, JavaScript will be enabled again. To disable it permanently across all tabs, you must use a Chrome extension designed for this purpose, such as Quick JavaScript Switcher or Toggle JavaScript, which you can find in the Chrome Web Store. These extensions add a button to your toolbar that lets you turn JavaScript on and off with one click.
Disable JavaScript in Firefox
Firefox stores JavaScript settings in a hidden configuration page. Type about:config into the address bar and press Enter. Firefox will warn you that you are entering advanced settings — click Accept the Risk and Continue. In the search box at the top, type javascript.enabled. You will see one result with a toggle switch on the right side. Click the toggle to turn it off. JavaScript is now disabled for all websites in Firefox.
To turn JavaScript back on, return to about:config, find javascript.enabled again, and click the toggle to switch it back on. If you want to disable JavaScript for only certain websites instead of all of them, use a Firefox extension like NoScript or uMatrix, which give you fine-grained control over which scripts run on which sites.
Disable JavaScript in Edge
Microsoft Edge uses the same Developer Tools approach as Chrome. Open any webpage, then press Ctrl + Shift + J on Windows to open the Console. Click the three dots in the top right corner of the Developer Tools panel and select Settings. On the left sidebar, click Experiments, search for "disable javascript", and check the box. Close the Developer Tools panel.
Like Chrome, this disables JavaScript only for the current tab. For a permanent, browser-wide setting, install an extension from the Microsoft Edge Add-ons store, such as Toggle JavaScript or NoScript. These extensions work similarly to their Chrome counterparts and let you manage JavaScript on a per-site basis.
Disable JavaScript in Safari
Safari's JavaScript setting lives in the main preferences menu. Click Safari in the top menu bar, then select Settings (or Preferences on older versions). Click the Security tab. You will see a checkbox labeled Enable JavaScript — uncheck it. Close the settings window. JavaScript is now disabled for all websites.
To turn it back on, return to Safari > Settings > Security and check the box again. Safari does not offer a straightforward way to disable JavaScript for individual websites through its built-in settings, so if you want per-site control, you will need to use a third-party extension from the App Store, such as 1Blocker or Wipr.
What happens when JavaScript is disabled
When you disable JavaScript, many websites will look broken or incomplete. Interactive features stop working — you may not be able to click buttons, submit forms, or watch videos. Some sites will refuse to load at all and display an error message telling you to enable JavaScript. Search engines, email services, and social media platforms are particularly dependent on JavaScript and often become unusable without it.
straightforward websites that are mostly text and images will usually work fine without JavaScript. If you disable it globally and find yourself constantly turning it back on, consider using an extension that blocks only tracking scripts or ads instead, which preserves most website functionality while reducing the data collected about you.
Using extensions instead of disabling JavaScript entirely
A middle ground between disabling all JavaScript and allowing it everywhere is to use an extension that blocks specific types of scripts. uBlock Origin (available for Chrome, Firefox, and Edge) blocks ads and many tracking scripts by default while leaving the rest of JavaScript intact. Privacy Badger (also multi-browser) learns which trackers follow you across sites and blocks them. NoScript (Firefox and Chrome) lets you see every script a website tries to run and approve or block each one individually.
These extensions give you more control than a straightforward on-off switch and let you keep using websites normally while reducing the amount of code running in the background. They are particularly useful if your concern is privacy or performance rather than breaking websites intentionally.
Frequently Asked Questions
Will disabling JavaScript make my browser faster?
On very old computers, disabling JavaScript may speed up some websites slightly. On modern machines, the difference is usually not noticeable. If speed is your concern, disabling ads and tracking scripts with an extension like uBlock Origin is more effective than disabling JavaScript entirely, because it keeps websites working while removing the slowest parts.
Can I disable JavaScript for just one website?
Yes, in Firefox and Chrome you can use extensions like NoScript or uMatrix to control JavaScript on a per-site basis. In Safari, you must disable JavaScript globally — there is no built-in per-site option. Edge and Chrome also allow you to disable it temporarily for a single tab using Developer Tools, though it resets when you close the tab.
What if a website tells me to enable JavaScript and I do not know how?
Follow the steps above for your browser — they are the same steps you used to disable it. If you disabled it in Firefox using about:config, go back there and toggle javascript.enabled back on. If you used an extension, click the extension icon in your toolbar and re-enable it. The website should work when ready after.
Is disabling JavaScript safer?
Disabling JavaScript blocks some types of malicious code, but it is not a complete security solution. Malware can spread through other means, and many legitimate websites need JavaScript to function. Using an extension that blocks known trackers and ads is a better balance between security and usability than disabling JavaScript entirely.
Do I need to restart my browser after disabling JavaScript?
No. In Firefox, the change takes effect when ready. In Chrome, Edge, and Safari, you may need to refresh the webpage you are viewing for the change to explore to that page, but you do not need to close and reopen the browser.