Why you might turn off JavaScript

JavaScript is code that runs inside your browser to make websites interactive — it powers dropdown menus, live chat boxes, auto-loading feeds, and forms that respond as you type. Turning it off stops all of that from working.

Most people leave JavaScript on because modern websites need it. But you might disable it temporarily to test whether a slow website is caused by JavaScript, to block tracking scripts that follow you across sites, or to stop auto-playing videos and ads. Some people disable it permanently on older computers where JavaScript slows things down noticeably.

The tradeoff is real: many websites will break or become unusable without JavaScript. You may see blank pages, buttons that don't work, or forms you can't submit. If you turn it off, you'll likely need to turn it back on for most sites to function.

Key Takeaways

  • JavaScript is code that makes websites interactive, and disabling it stops animations, live updates, and tracking scripts from running.
  • Most modern websites require JavaScript to work at all, so turning it off will break many sites you use regularly.
  • The steps to disable JavaScript differ by browser — Chrome, Firefox, Safari, and Edge each have their own path.
  • You can disable JavaScript for all sites at once or use browser extensions to turn it off only on specific websites.
  • If you disable it globally and websites stop working, turning it back on takes the same steps in reverse.

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 sidebar. Choose Site settings, then scroll down and click JavaScript. Toggle the switch next to "Allowed (recommended)" to turn it off.

After you disable it, reload any open websites to see the change take effect. If a site stops working and you need JavaScript back on, return to the same menu and toggle the switch back to "Allowed".

If you want to disable JavaScript on only one website instead of all of them, use the same path but click the lock icon next to the website address in the address bar. Select Site settings and toggle JavaScript off for just that site.

Disable JavaScript in Firefox

Type about:config in the address bar and press Enter. Firefox will show a warning — click Accept the Risk and Continue. In the search box that appears, type javascript.enabled. You'll see one result with a toggle switch on the right side. Click the toggle to turn JavaScript off.

Reload your websites to see the change. To turn JavaScript back on, return to the same page and click the toggle again — it will switch back to "true".

Firefox does not have a built-in way to disable JavaScript for only one site without using an extension. If you want that control, search the Firefox add-ons store for "NoScript" or "uMatrix", which let you choose which sites can run JavaScript.

Disable JavaScript in Safari

Click Safari in the top menu bar and select Settings (or Preferences on older versions). Go to the Security tab. You'll see a checkbox that says "Enable JavaScript" — uncheck it to turn JavaScript off.

Close the settings window and reload your websites. The change takes effect when ready. To turn it back on, return to the same checkbox and check it again.

Safari's built-in settings explore JavaScript control to all websites at once. If you want finer control, you'll need to install a third-party extension from the App Store that manages JavaScript per site.

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 sidebar. Scroll down to Site permissions and click JavaScript. Toggle the switch next to "Allowed (recommended)" to turn it off.

Reload your websites to see the change. If you need to turn it back on, return to the same menu and toggle the switch back to "Allowed".

To disable JavaScript on a single website, click the lock icon next to the address bar, select Site permissions, and toggle JavaScript off for just that site.

Using extensions to control JavaScript per site

If you want to keep JavaScript on for most sites but block it on a few, browser extensions give you more control than the built-in settings. NoScript (available for Firefox and Chrome) and uMatrix (Firefox and Chrome) let you see which scripts are running on each page and toggle them on or off individually.

These extensions show you a list of all the code trying to run when you visit a website. You can allow or block each one, which gives you more power than a straightforward on-off switch. The downside is that managing scripts on every site takes time, and you may need to allow scripts one by one before a website works properly.

For most people, disabling JavaScript globally in browser settings is simpler. Extensions are better if you want JavaScript off by default but need it on for specific sites you trust.

What happens when JavaScript is disabled

Many websites will stop working or look broken. Dropdown menus may not open, buttons may not respond, forms may not submit, and pages may not load new content as you scroll. Some sites will show a message saying "JavaScript is required" and refuse to load at all.

Websites that rely heavily on JavaScript — like Gmail, Google Maps, Slack, or Netflix — become unusable. Websites that are mostly text and images, like news sites or blogs, usually still work but may lose interactive features like comment sections or search.

If you disable JavaScript and realize you need it back, the process is reversible. Follow the same steps for your browser and toggle JavaScript back on. Reload the website and it should work again.

Frequently Asked Questions

Will disabling JavaScript make my computer faster?

It might, but probably not noticeably. JavaScript does use processing power, so disabling it removes that load. On very old computers, you may see a small speed improvement. On modern computers, the difference is usually too small to notice. The bigger slowdown on most websites comes from images, videos, and ads — not JavaScript itself.

Does disabling JavaScript make me more private?

Partially. JavaScript is one tool advertisers and trackers use to follow you across websites. Disabling it stops some tracking. But websites can still track you through other methods, like cookies and server logs. If privacy is your goal, disabling JavaScript alone is not enough — you'd also want to block cookies and use a privacy-focused browser or extension.

Can I disable JavaScript on my phone?

Most phone browsers do not offer a built-in way to disable JavaScript. Chrome on Android and Safari on iPhone both run JavaScript by default with no user-facing toggle. If you want to block JavaScript on mobile, you'll need to install a third-party browser or extension that offers that feature.

What if a website says it requires JavaScript but I have it enabled?

This usually means JavaScript is blocked by an extension or security software, not by your browser settings. Check whether you have NoScript, uMatrix, or a similar extension installed and blocking scripts on that site. You can also try disabling all extensions temporarily to see if one of them is the culprit.

Do I need to restart my browser after disabling JavaScript?

No. The change takes effect when ready, though you should reload any open websites to see the difference. You do not need to close and reopen your browser.