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 boxes, 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 you might turn it off to load pages faster on a slow connection, to stop certain ads and tracking scripts from running, or to test whether a website works without it. Some people disable it as a security measure, though this is less common now that browsers have better built-in protections.
The trade-off is real: disabling JavaScript will break many websites. You may see blank pages, buttons that do nothing, or forms you cannot submit. If you turn it off, you will likely need to turn it back on for most of the internet to work normally.
Key Takeaways
- JavaScript is a programming language that makes websites interactive, and disabling it will break many modern sites.
- Chrome, Firefox, Safari, and Edge all have settings to disable JavaScript, though the steps differ slightly for each browser.
- You can disable JavaScript globally for all websites, or use browser extensions to turn it off only on specific sites.
- Most websites will not work properly without JavaScript, so you will likely need to turn it back on frequently.
Disable JavaScript in Chrome
Chrome does not have a simple on-off switch for JavaScript in the main settings menu. Instead, you disable it through the Developer Tools or by changing a hidden setting.
The easiest method is to open Chrome, press Ctrl+Shift+J (Windows) or Cmd+Option+J (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. This disables JavaScript only while the Developer Tools are open.
To disable JavaScript permanently in Chrome, you need to access the hidden settings. Type chrome://settings/content/javascript into the address bar and press Enter. Toggle the switch next to JavaScript to the off position. This turns off JavaScript for all websites until you toggle it back on.
Disable JavaScript in Firefox
Firefox makes this simpler than Chrome. Type about:config into the address bar and press Enter. You will see 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 (on) to false (off). JavaScript is now disabled for all websites. To turn it back on, click the toggle again to set it back to true.
Disable JavaScript in Safari
Safari's JavaScript setting is in the Develop menu, which is hidden by default. First, enable it: click Safari in the top menu, select Preferences, go to the Advanced tab, and check the box that says Show Develop menu in menu bar.
Now click the Develop menu at the top and look for Disable JavaScript. Click it to turn JavaScript off. A checkmark will appear next to it when it is disabled. Click it again to turn JavaScript back on.
Disable JavaScript in Edge
Microsoft Edge works similarly to Chrome. Press Ctrl+Shift+J (Windows) or Cmd+Option+J (Mac) to open the Developer Tools. Click the three-dot menu in the top right of the Developer Tools panel, select Settings, scroll down, and check Disable JavaScript. This only works while Developer Tools are open.
To disable JavaScript permanently, type edge://settings/content/javascript into the address bar and press Enter. Toggle the switch next to JavaScript to the off position.
Using browser extensions to disable JavaScript on specific sites
If you want to disable JavaScript everywhere, the steps above work. But if you only want to turn it off on certain websites, a browser extension is easier than toggling a global setting each time.
uMatrix (Firefox and Chrome) and NoScript (Firefox, Chrome, and Edge) are two popular options. Both let you click a button to see what scripts are running on a page and block them individually. You can set rules so that JavaScript stays off on one site but stays on everywhere else.
To install an extension, go to your browser's extension store (Chrome Web Store, Firefox Add-ons, Edge Add-ons), search for the extension name, and click Add to [Browser]. Once installed, you will see a new icon in your toolbar that you can click to manage JavaScript on each page.
What happens when JavaScript is disabled
With JavaScript off, many websites will not work. You may see blank pages, missing images, forms that will not submit, or buttons that do nothing when clicked. Shopping carts, email clients, and video players often require JavaScript to function.
Some websites are built to work without JavaScript and will display fine. News sites, blogs, and documentation pages often fall into this category. But modern web applications — Gmail, Google Docs, Slack, most social media — will be unusable.
If you disable JavaScript and a website breaks, the fix is simple: turn it back on using the same steps above. You do not need to restart your browser.
Frequently Asked Questions
Will disabling JavaScript make my browser faster?
Possibly, but usually not noticeably. JavaScript does use processing power, but modern browsers are efficient at running it. You might see a speed improvement on very slow connections or old computers, but on most systems the difference is minimal. The bigger slowdown usually comes from ads and tracking, which JavaScript enables but does not cause directly.
Is disabling JavaScript safer?
It reduces one attack surface, but modern browsers already have strong protections against malicious scripts. Disabling JavaScript is not a substitute for keeping your browser updated, using strong passwords, or being careful what you click. For most people, the security benefit is small compared to the loss of functionality.
Can I disable JavaScript on just one website?
Yes, using a browser extension like NoScript or uMatrix. These tools let you block scripts on individual sites while leaving JavaScript on everywhere else. This is more practical than disabling it globally if you only want to turn it off in specific places.
Do I need to restart my browser after disabling JavaScript?
No. The change takes effect immediately on new pages you visit. Pages you already have open may not update until you refresh them, but you do not need to close and reopen your browser.
What if a website says it requires JavaScript and I have it disabled?
Turn JavaScript back on for that site. Use the same steps you used to disable it, or use a browser extension to allow JavaScript only on that specific domain. Then refresh the page.