How to Disable JavaScript in Firefox

Protect yourself from harmful scripts, and make pages load faster

You may occasionally need to disable JavaScript for development or security purposes. Just as you can turn off JavaScript in Chrome and other browsers, you can also disable JavaScript in Firefox.

Instructions in this article apply to Firefox for Windows, Mac, Linux, and Android.

Firefox
commons.wikimedia.org

How to Turn Off JavaScript in Firefox

Disabling JavaScript in Firefox should only take a few minutes, even if you're unfamiliar with how to use Firefox's settings. Before you begin, make sure you've updated Firefox to the latest version.

  1. Enter about:config into the URL bar in Firefox.

  2. Select the blue Accept the Risk and Continue button.

    Select Accept the Risk and Continue.
  3. Enter javascript.enabled into the search box at the top of the page.

  4. Select the toggle to the right of javascript.enabled to change its value to false.

    On Android, tap the entry, then tap the toggle to disable JavaScript in Firefox.

    The Javascript toggle
  5. JavaScript is now disabled in your Firefox browser. To re-enable it at any time, repeat the steps above to change the value of javascript.enabled to true.

Why Disable JavaScript in Firefox?

You may need to turn off JavaScript for performance reasons or as part of a troubleshooting guide. JavaScript can pose a security risk, so disabling it decreases your risks of downloading malware.

Sometimes JavaScript malfunctions on a website, which prevents the page from loading. It can also cause the browser to crash. Disabling JavaScript may allow you to view a simplified version of a page that won't load properly.

When developing your website, you'll need to know how to disable JavaScript in Firefox for troubleshooting issues. For instance, if you have a plug-in that uses JavaScript, you might have to disable it to fix a problem.