Warning Unresponsive script - What it means and how to fix it

Firefox Firefox Last updated: 4 days, 2 hours ago 75% of users voted this helpful
No one has helped translate this article yet. If you already know how localizing for SUMO works, start translating now. If you want to learn how to translate articles for SUMO, please start here.

When Firefox shows a a “Warning: Unresponsive script” prompt that says “A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.”, it means a webpage (or sometimes an extension) is running a script that’s taking too long to complete. This can cause Firefox to slow down, freeze, or stop responding.

This article explains what causes the warning, what it looks like, and gives you detailed step-by-step solutions, including how to change script timeout settings and how to troubleshoot software conflicts.

Why this warning appears

Firefox uses scripts to help load web content, run interactive elements, and power browser features. If a script takes too long to finish, Firefox pauses it to prevent your browser from freezing entirely.

Possible causes include:

  • A poorly coded or overloaded webpage (e.g., heavy ads, infinite loops).
  • An outdated or incompatible extension.
  • A software conflict (e.g., antivirus or ad blocker interfering with page scripts).
  • A Firefox setting that limits how long scripts can run.

What to do when you see the warning

Option 1: Let the script continue (briefly)

If you don’t see the warning again after clicking Continue, the script may just need a few extra seconds to finish.

But if the warning keeps returning or Firefox becomes unresponsive, continue with the steps below.

Option 2: Block scripts on specific websites

If the error only happens on one site, that site is likely causing the issue. You can use an extension to block scripts from running on specific domains:

  1. Install the JavaScript Toggle On and Off extension.
  2. Click the menu button Fx89menuButton, click Add-ons and themesExtensions and themes and select Extensions.
  3. Find the JavaScript Toggle On and Off entry and click the OptionsPreferences button.
  4. Scroll down to the Black-list text box and enter the URL of the site that's giving you problems.
  5. Click Save. The domain name of the site will be added to the list.

Now that the problematic site has been blocked from running scripts, it will no longer cause unresponsive script warnings.

Option 3: Check for conflicting software

Some antivirus tools or privacy extensions may block or interfere with scripts. Common examples reported by users:

Software/ToolReported IssueSuggested Action
MalwarebytesFlags or blocks safe scriptsAdd Firefox to exclusions
AdBlock / uBlockPrevents scripts from loadingTemporarily disable to test
Script-blocking extensionsAggressively blocks page elementsReview filter lists

Troubleshooting

  1. Restart Firefox in Troubleshoot Mode:
    • Click the menu button > Help > Troubleshoot Mode….
    • Click Restart in the confirmation dialog.
  2. Test the site again.
  3. If the error doesn’t appear, one of your extensions or software tools may be causing the problem.

Option 4: Increase script run time (Advanced)

Warning: These instructions are for experienced Firefox users. Changing settings in the Configuration Editor (about:config) can have serious effects on your browser’s stability, security and performance.
Only proceed if you are comfortable with advanced settings and understand the potential impacts.

  1. Type about:config in the address bar and press EnterReturn.
    A warning page may appear. Click Accept the Risk and Continue to go to the about:config page.
  2. In the about:config page, search for the preference dom.max_script_run_time.
  3. Click the Edit Fx71aboutconfig-EditButton button and enter 20.
  4. Press the checkmark Fx71aboutconfig-Checkmark button to save the preference.

If you still receive the prompt (or if you want to see it again), you should set that preference back to the default value.

  1. Type about:config in the address bar and press EnterReturn.
    A warning page may appear. Click Accept the Risk and Continue to go to the about:config page.
  2. In the about:config page, search for the preference dom.max_script_run_time.
  3. Click the Reset Fx71aboutconfig-ResetButton button.

Still having issues?

If none of the above fixes help, try these:

  • Refresh Firefox to restore default settings
  • Switch to another browser temporarily to access the problematic site
  • Report the site to Mozilla using the Report Broken Site feature in the Firefox menu

Important notes

  • Firefox may show this warning even when the issue isn’t caused by your system.
  • If your browser is crashing, running slow, or freezing beyond just script errors, you may be facing a product issue, not a documentation issue. We recommend:

Related articles



Based on information from Unresponsive Script Warning (mozillaZine KB)

These fine people helped write this article:

Illustration of hands

Volunteer

Grow and share your expertise with others. Answer questions and improve our knowledge base.

Learn More