ThisCalculator

Everyday

Firefox Slow Browser Warning: Causes & Fixes

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Firefox Slow Browser Warning: Causes & Fixes

If Firefox shows a “A web page is slowing down your browser� warning, it means a script on that page is taking too long to respond, and Firefox is giving you the option to stop it or wait. This article explains what triggers the warning, how to fix it, and how to prevent it from recurring.

What Does the Warning Actually Mean?

Firefox runs most web page code (JavaScript) on a single main thread. When a script performs a long loop, a heavy animation, or a complex calculation, it blocks other tasks on that thread. After a set time (usually around 10 seconds of unresponsiveness), Firefox shows a dialog: “A web page is slowing down your browser. To stop the script, click Stop, or click Continue to let it finish.�

The warning is not a virus or a sign of malware. It is a built-in safeguard to prevent a single tab from freezing the entire browser. It can appear on any site, but it is more common on pages with heavy ads, complex analytics, or poorly optimized JavaScript.

Why Does It Happen on Some Sites and Not Others?

Some websites are simply heavier. A page with dozens of trackers, autoplaying videos, or a live chat widget may run many scripts simultaneously. Others have bugs in their code—an infinite loop or an overly aggressive polling function—that cause the script to run forever. Firefox’s warning is triggered by the duration of a single script execution, not by the number of scripts. So a single faulty script can cause the warning even on a simple-looking page.

Browser extensions can also cause this. An extension that injects code into every page you visit may itself run a long script. If you see the warning on many different sites, an extension is a likely culprit.

How to Fix the Warning When It Appears

When the dialog pops up, you have two immediate options:

  • Stop – This halts the script. The page may become partially functional, but it will stop consuming CPU. Often the page will still work for reading or clicking links.
  • Continue – This lets the script run longer. If the script is a legitimate heavy process (like a large spreadsheet app), it may finish soon after. If it is stuck in a loop, it will likely trigger the warning again.

If the warning keeps appearing on the same page, try these steps in order:

  1. Reload the page – Sometimes the script was a one-time glitch.
  2. Disable hardware acceleration – Go to Settings > General > Performance and uncheck “Use recommended performance settings,� then uncheck “Use hardware acceleration when available.� Restart Firefox. This helps if graphics drivers are causing the script to hang.
  3. Restart in Troubleshoot Mode – Click the menu (☰) > Help > Troubleshoot Mode. This disables all extensions temporarily. If the warning disappears, an extension is the cause.
  4. Update Firefox – Newer versions often fix script-handling bugs. Go to Settings > General > Firefox Updates.

How to Prevent the Warning in the Future

Prevention focuses on reducing the load on Firefox’s main thread:

  • Use a content blocker – Extensions like uBlock Origin (open source) block many tracking scripts and ads that cause long executions. This is the most effective single step.
  • Limit open tabs – Each tab runs its own scripts. Too many heavy tabs can slow the whole browser, making the warning more likely.
  • Disable unnecessary extensions – Review your installed extensions and remove any you don’t use. Each one can add script overhead.
  • Enable “Automatic tab unloadingâ€� – In Settings > General > Performance, check “Automatically unload inactive tabs.â€� This frees memory and CPU from background tabs.
  • Use a separate profile for heavy sites – You can create a new Firefox profile (about:profiles) for sites that are known to be heavy, keeping your main profile clean.

Common Misconceptions and Related Questions

Is this a sign of a virus? No. It is a standard browser feature. Malware might cause similar symptoms, but the warning itself is benign.

Does it mean my computer is slow? Not necessarily. Even on a fast computer, a poorly written script can block the main thread. However, if you have limited RAM or an old CPU, you may see the warning more often.

Can I disable the warning entirely? There is no official setting to turn it off. You can change the timeout threshold by going to about:config and setting dom.max_script_run_time to a higher value (in seconds). Setting it to 0 disables the warning, but that is not recommended because a truly stuck script would freeze the browser indefinitely.

What to Do If the Warning Persists on a Specific Site

If a particular site always triggers the warning, try these:

  • Clear the site’s cookies and cache (Settings > Privacy & Security > Cookies and Site Data > Manage Data).
  • Check if the site works in a different browser (Chrome, Edge). If it does, the problem is Firefox-specific and may be a bug.
  • Report the issue to the site’s support, as it is likely a problem on their end.

Frequently Asked Questions

Will clicking “Stop� break the page?

Sometimes. The page may lose functionality that depends on that script, such as a live chat or a dynamic menu. But often the page’s core content (text, images) remains viewable. You can always reload the page to try again.

Why does the warning appear on Google Docs or other web apps?

Web apps like Google Docs run large JavaScript files to handle editing and autosave. These can legitimately take longer than the threshold, especially on complex documents. Clicking “Continue� is usually safe, but if it happens constantly, try using the app in a separate browser or disabling extensions that might interfere.

Does Firefox have a setting to increase the script timeout?

Yes. Type about:config in the address bar, search for dom.max_script_run_time, and change the value from the default (10) to a higher number like 20 or 30. This gives scripts more time before the warning appears. Be cautious: increasing it too much can make the browser unresponsive for longer if a script is truly stuck.

Can I stop the warning from appearing on a specific site only?

There is no built-in per-site setting. You could use an extension like Greasemonkey to modify the site’s scripts, but that is advanced. The simplest approach is to use a content blocker or to avoid the site if it is consistently problematic.

Is there a way to see which script is causing the problem?

Yes, use Firefox’s Developer Tools. Press F12, go to the “Performance� tab, and record a profile while the page loads. You can see which function takes the most time. This is technical, but it helps if you are a developer or a power user.

Will the warning damage my computer or Firefox?

No. It is just a dialog. Clicking either option is safe. The worst case is that the page becomes unresponsive, and you close the tab.

Related

Formula used

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.