Why you might want to disable JavaScript
JavaScript is code that runs inside your browser to make websites interactive — it powers things like dropdown menus, live chat, video players, and forms that respond as you type. Disabling it stops all that code from running.
Most people leave JavaScript on because many modern websites need it to work at all. But some readers turn it off to speed up page loading, reduce tracking, block ads that use scripts, or test whether a website works without it. A few disable it permanently because they distrust scripts running on their computer, though this breaks most sites you visit.
The tradeoff is real: you gain privacy and speed, but lose functionality. Many banking sites, email services, and streaming platforms will not work without JavaScript. This guide shows you how to disable it in the major browsers, and how to turn it back on if a site stops working.
Key Takeaways
- Chrome, Firefox, Safari, and Edge all let you disable JavaScript, though the process differs slightly in each browser.
- Disabling JavaScript globally breaks most modern websites, so consider using an extension that lets you toggle it per site instead.
- You can disable JavaScript for a single website without affecting others, which is useful if you want to block scripts on one site but keep them everywhere else.
- If you disable JavaScript and a website stops working, turning it back on usually fixes the problem immediately.
Disable JavaScript in Chrome
Chrome does not have a built-in on-off switch for JavaScript in the main settings menu. Instead, you disable it through the Developer Tools, which is a panel hidden inside the browser.
Open any webpage, then press Ctrl + Shift + J on Windows or Cmd + Option + J on Mac to open the Developer Tools console. Click the three-dot menu in the top right corner of the Developer Tools panel, select Settings, then scroll down to find Disable JavaScript. Check that box. Close the Developer Tools by pressing the same keyboard shortcut again. JavaScript is now off for all sites until you uncheck that box.
This method only works while you have that browser window open. If you close Chrome completely and reopen it, JavaScript turns back on automatically. To disable it permanently, you need a browser extension like uBlock Origin or NoScript, which give you finer control over which scripts run on which sites.
Disable JavaScript in Firefox
Firefox lets you disable JavaScript through the address bar without opening developer tools. 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 that appears, 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 disabled for all websites. To turn it back on, click the toggle again to switch it back to true.
This setting sticks even after you close and reopen Firefox, so JavaScript stays off until you manually re-enable it. If you want to disable JavaScript on only certain sites instead of everywhere, Firefox extensions like NoScript or uMatrix let you control scripts per domain.
Disable JavaScript in Safari
Safari hides the JavaScript toggle in the Developer menu, which is off by default. First, enable the Developer menu by opening Safari, clicking Safari in the top menu bar, then selecting Preferences. Click the Advanced tab, then check the box next to Show Develop menu in menu bar. Close Preferences.
Now click the Develop menu that appeared in your menu bar, and uncheck Disable JavaScript. The checkmark means JavaScript is off. To turn it back on, click Develop again and check Disable JavaScript so the checkmark disappears.
This setting applies to all websites in Safari. If you want more granular control — such as disabling JavaScript on one site but not others — you will need a third-party extension, though Safari has fewer JavaScript-control extensions than Chrome or Firefox.
Disable JavaScript in Microsoft Edge
Edge works similarly to Chrome because both use the same underlying engine. Press Ctrl + Shift + J on Windows or Cmd + Option + J on Mac to open Developer Tools. Click the three-dot menu in the top right of the Developer Tools panel, select Settings, scroll down, and check Disable JavaScript. Close the Developer Tools.
Like Chrome, this disables JavaScript only while that window is open. When you close Edge completely, JavaScript turns back on the next time you launch it. For permanent disabling, use an Edge extension such as uBlock Origin or NoScript.
Using extensions for per-site control
Disabling JavaScript globally breaks most websites, so many readers use extensions instead to turn JavaScript on and off for individual sites. NoScript is available for Chrome, Firefox, and Edge. It blocks all scripts by default and shows you a list of every script trying to run on each page — you can then allow the ones you trust.
uBlock Origin, available for all major browsers, is primarily an ad blocker but also lets you disable JavaScript on specific domains through its settings. uMatrix for Firefox and Chrome gives you a grid view where you can block scripts, images, and other content per site with a single click.
These extensions let you keep JavaScript on for sites that need it (like your bank) while blocking it on sites where you do not want it running. They also survive browser restarts, so your settings stay in place.
What happens when JavaScript is disabled
With JavaScript off, interactive features stop working. Dropdown menus become unclickable, forms may not submit, videos will not play, and live notifications disappear. Some sites show an error message saying they require JavaScript. Others load but look broken — buttons do nothing, pages do not scroll smoothly, or content does not load at all.
Banking sites, email services like Gmail, and streaming platforms like Netflix usually will not work without JavaScript. Social media sites like Facebook and Twitter become nearly unusable. Even simple sites like Google Search work, but the autocomplete suggestions and "I'm Feeling Lucky" button will not function.
If you disable JavaScript and a site stops working, turn it back on using the same steps above. The site should work immediately. You do not need to refresh the page — just re-enable JavaScript and try again.
Frequently Asked Questions
Does disabling JavaScript make me more private?
Partially. JavaScript can track your behavior on a website and send that data to advertisers or analytics services. Disabling it stops that tracking. However, websites can still see your IP address, what pages you visit, and other information without JavaScript. For stronger privacy, consider a VPN or privacy-focused browser extension alongside disabling JavaScript.
Will disabling JavaScript speed up my internet?
Yes, noticeably on some sites. JavaScript takes time to download and run, so pages load faster without it. The effect is strongest on sites loaded with ads and tracking scripts. On simple sites with little JavaScript, you may not notice a difference.
Can I disable JavaScript on just one website?
Not with the built-in browser settings — those are all-or-nothing. You need an extension like NoScript or uBlock Origin to disable JavaScript per site. These extensions let you block scripts on one domain while keeping them on everywhere else.
What if I disable JavaScript and forget how to turn it back on?
Use the same steps you used to disable it. In Chrome and Edge, open Developer Tools and uncheck the box. In Firefox, go to about:config and toggle javascript.enabled back to true. In Safari, go to Develop menu and check Disable JavaScript again. If you used an extension, just disable the extension or adjust its settings.
Do I need to restart my browser after disabling JavaScript?
No. Changes take effect immediately for new pages you visit. Pages you already have open may need to be refreshed to see the change, but you do not need to close and reopen the browser.