Firefox extremely slow to load pages or connect to Web sites after startup - Follow-Up
I see my original question is now archived at https://support.mozilla.org/en-US/questions/1380948#question-reply I never closed it because I didn't know if my last process could really fix the issue. It didn't, not always. Over the years, there have been times when the issue would still pop up, but not as often as before (2022 and earlier).
I have a feeling that during an issue, FF is having difficulty setting up shop after starting up. Consequently, it is spending more time before it could become prepared to connect to the Net. I've come up with another "solution," which is deleting (or moving out) xulstore.json in the profile folder after exiting or before starting FF. You can create a batch command or script to execute the process.
So far, FF is connecting immediately after startup.
All Replies (7)
In that previous thread you wrote that your problem might be caused by not giving Firefox to close down properly before shutting down the computer.
Are you using "Clear history when Firefox closes" to clear data like the disk cache and in that case closing Firefox can take more time and Firefox will finish pending tasks on the next start?
- Settings -> Privacy & Security
Firefox will: "Use custom settings for history":
[X] "Clear history when Firefox closes" -> Settings - https://support.mozilla.org/en-US/kb/delete-browsing-search-download-history-firefox
Thanks for the response.
"Firefox will finish pending tasks on the next start" That's something new.
I use custom settings for history.
I usually close FF only when shutting the computer at the end of the day. What I've been doing via batch command since 2022 (?) - because of the issue - is to allow 60 secs after exiting FF before shutting down the computer. This because I notice that if I exit FF and start it again immediately, FF would complain that it hasn't totally closed or a window would pop up asking whether to restart or quit FF. So, I give it time to properly close shop. It helps in minimizing occurrence of the issue on the next start up.
Before, I even created a batch command to help FF dump crash reports, if they existed, during exit, but now I just give it more time.
Have to report. As before, it doesn't work all the time.
mobilesuit said
Have to report. As before, it doesn't work all the time.
This because...
I created a batch command to close FF and delete xulstore.json. Apparently, the file is not being deleted every time, even when command is executed in administrator mode; hence, failure to fix the original issue at times.
I am introducing some seconds of delay after exiting FF before deleting xulstore.json. The initial tests show it's working.
We'll see.
How big is your xulstore.json file typically? Do you have a lot of windows in your session?
zeroknight said
How big is your xulstore.json file typically? Do you have a lot of windows in your session?
Only 1KB.
I usually have some tabs open all the time, not windows.
Does it still happen with default settings in a new browser profile? An easy way to test a new profile is to install Developer Edition and see if it happens there or refresh your existing profile. Make sure you don't sign in to the browser with your Mozilla account while testing to avoid syncing across any settings.