Solved Firefox takes too long to start up

Firefox is taking too long to start up recently; not sure since which update. Currently running www/firefox-esr 128.3.1,1 on FreeBSD 14.1; had the same problem with www/firefox too, both installed with pkg. Facing the same issue on KDE and XFCE on two different machines, one with a fast wired connection and the other with wifi. Tried safe-mode with the same results. The home page is a blank page.
 
Firefox 131.0.2 opens instantly for me on Freebsd 14.1 p5

I have Firefox installed in a Jail as well which also opens straight away

running dwl and wayland
 
  • Like
Reactions: drr
It takes around 3 sec to start on my old laptop.

Code:
% time firefox file:///home/versus/quit.html
console.error: ({})
3.006u 0.561s 0:02.65 134.3%    734+301k 0+56io 0pf+0w

You need to set dom.allow_scripts_to_close_windows for firefox in about:config so window.close() script can close the browser. Also you can disable about:studies to avoid some startup error messages and set your startup page as about:blank so it will not try to load the about:home cache and feeds.

Hostname: versus-laptop2
Bootmethod: UEFI
OS: FreeBSD amd64
Version: 14.1-RELEASE-p5
CPU: Intel(R) Core(TM) i7 CPU L 640 @ 2.13GHz
RAM: 2101M / 3843M

And for chrome
Code:
$time chrome --allow-scripts-to-close-windows file:///home/versus/quit.html
2.311u 0.670s 0:01.86 160.2%    213110+3673k 0+301io 0pf+0w

Here's the quit.html
Code:
<html>
<body onLoad="window.close();">
</body>
</html>
 
VladiBG Thanks. I followed your instructions and here is the output; it seems firefox takes around 11 secs for me. I have noticed this delay only recently; earlier versions of firefox used to load quick on the same machine.
Code:
% time firefox /home/user/quit.html
console.error: ({})
JavaScript error: resource://gre/modules/ExtensionCommon.sys.mjs, line 2690: Error: listener not re-registered
JavaScript error: resource://gre/modules/ExtensionCommon.sys.mjs, line 2690: Error: listener not re-registered
JavaScript error: resource://gre/modules/ExtensionCommon.sys.mjs, line 2690: Error: listener not re-registered
JavaScript error: resource://gre/modules/ExtensionCommon.sys.mjs, line 2690: Error: listener not re-registered
JavaScript error: resource://gre/modules/ExtensionCommon.sys.mjs, line 2690: Error: listener not re-registered
console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch re
source.
1.061u 0.205s 0:11.06 11.3%     775+339k 0+194io 1pf+0w
I am currently running firefox-esr-128.3.1,1 on 14.1-RELEASE-p5. CPU: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz. RAM: 64GB.
 
Following some very old firefox bugzilla entries , setting '127.0.0.1 your-host' mapping in /etc/hosts seems to fix the problem for me. Firefox starts instantly after this mapping was added.
However, I have never set such a mapping on my machines before, so something may have changed recently.
 
I am currently running firefox-esr-128.3.1,1 on 14.1-RELEASE-p5. CPU: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz. RAM: 64GB.
10th gen Intel Core stuff seems to be surprisingly slow for FreeBSD... there's complaints elsewhere on these Forums that it's slow to compile stuff on FreeBSD (post #61) :
 
astyle , thanks for pointing me to this. I have previously attempted compiling some ports on this machine and resorted to pkg later on as it was taking way too long to compile.
 
Back
Top