FIX: Firefox Stops Loading Websites After Inactivity or Idle Time

If the Firefox web browser suddenly stops loading websites when you leave the web browser inactive or idle for some time, this article will help you in fixing the issue and make Firefox opening websites again.

I recently faced this weird issue in one of my Windows 11 devices. I was using the latest fully updated version of Mozilla Firefox web browser and the problem occurred when I left the web browser opened for a couple of minutes.

For example, I was working on some other programs such as reading emails, etc or taking a coffee break and when I activated Firefox window again and tried to open any website, Firefox kept loading the website and then displayed default connection error page.

The same issue occurred when I turned off my computer using hibernate or sleep function. After resuming, Firefox never worked and failed to open any website. The only workaround to solve the issue was to restart the browser. When I closed and reopened Firefox, it started working again.

Mozilla_Firefox_Fails_Loading_Websites_Inactive_Idle_Resume_Problem.png

There was no Internet connectivity issue as all other web browsers such as Google Chrome, Opera and Microsoft Edge were working fine and opening the same websites successfully. It was just Firefox browser which was unable to load any website after some inactivity or idle time or resuming from standby or hibernation.

After some troubleshooting, I was able to find the culprit behind this annoying issue. It seems a bug in Firefox which was causing this website loading issue. I discovered that if the DNS over HTTPS (DoH) feature is enabled or set to increased/max protection, it causes the above mentioned problem when Firefox is idle for some time. After disabling the option, Firefox started working again and I never encountered the loading issue again.

PS: The problem had nothing to do with the built-in tab sleep or tab freeze feature.

Disable DNS Over HTTPS Feature To Fix Website Loading Problem in Firefox

If you are also using Firefox web browser and it fails or stops loading webpages when you leave the web browser inactive or idle or when you resume your device, following steps will help you in resolving the issue:

STEP 1: Open Firefox Settings page by clicking on the main Firefox Menu (3-lines Hamburger menu icon) present at the right-side end of the toolbar and selecting Settings option. Alternatively, you can direct option Settings page using about:preferences command in address bar.

STEP 2: In left-side pane, click on “Privacy and Security” tab and in right-side pane, scroll down to bottom and you’ll see “DNS over HTTPS” section.

STEP 3: Now set the “Enable DNS over HTTPS using” option to OFF.

Disable_DNS_Over_HTTPS_DoH_Feature_Mozilla_Firefox_Settings.png

That’s it. As soon as you disable the DoH feature, Firefox should start working again. You can try to restart the web browser to take effects.

Modify DNS Over HTTPS Feature Using About:Config Page in Firefox

Advanced users can also use about:config page to modify DNS over HTTPS feature as mentioned below:

STEP 1: Open Mozilla Firefox and type about:config in the address bar and press Enter. It’ll show you a warning message, click on “Accept the Risk and Continue” button. It’ll open Firefox’s hidden secret advanced configuration page i.e. about:config page.

STEP 2: Now you’ll need to modify following two preferences:

doh-rollout.disable-heuristics

network.trr.mode

Following are the required values of the above mentioned preferences for different DoH (DNS over HTTPS) settings:

Default Protection (off):

doh-rollout.disable-heuristics – false

network.trr.mode – 0

Increased Protection:

doh-rollout.disable-heuristics – true

network.trr.mode – 2

Max Protection:

doh-rollout.disable-heuristics – true

network.trr.mode – 3

Off:

doh-rollout.disable-heuristics – true

network.trr.mode – 5

Configure_DNS_Over_HTTPS_DoH_Feature_About_Config_Mozilla_Firefox.png

To modify a preference, double-click on it and change its value. Alternatively, you can click on the Toggle/Edit icon given next to the preference name.

PS: If you are looking for a way to disable tab suspend/tab discard/tab sleep feature in Firefox which automatically puts the inactive/unused tabs to sleep to save memory usage, following article will help you:

[Tip] Disable or Enable Tab Sleep or Tab Snooze Feature in Web Browsers

Also Check:

[Fix] Firefox Taking Long Time in Opening Websites on Startup

Fix Mozilla Firefox Slow Loading and Crashing Problems by Clearing Startup Cache

Published in: Mozilla Firefox, Troubleshooting Guides

About the author: Vishal Gupta (also known as VG) has been awarded the Microsoft MVP (Most Valuable Professional) award. He holds a Masters degree in Computer Applications (MCA). He has written several tech articles for popular newspapers and magazines and has also appeared in tech shows on various TV channels.

Comments

NOTE: Older comments have been removed to reduce database overhead. Be the first one to start the discussion.

Leave a Comment

Your email address will not be published. Required fields are marked *

NOTE: Your comment may not appear immediately. It'll become visible once we approve it.