Firefox Browser Slowdown

I used to be a long time arch users and after an ubuntu break have tried using endeavour with i3 as my wm.

Everything works great except that firefox starts “lagging”, for lack of better terms, a few dozen minutes after I open it. Typing a single keystroke takes a few seconds, pages load slolwy or not at all, etc.

Chromium, side by side, works just fine. As does vsc, my text editors and my terminal emulators.

I’ve looked into the usual culprits, memory usage, swap usage, cpu, scheduler, cpu power saving settings, graphic drivers and see no smoking gun.

I’m on firefox version 106.0.4-1, which is the latest available afaict. I was previously using firefox on Ubuntu on this same machine and it worked fine.

Any idea for how to fix it or investigate further would be greatly appreciated.

Err…not at all.

Name            : firefox
Version         : 107.0.1-1

The version you are on is almost a month out of date.

Try updating your system and if that shows as the latest, resort your mirrors from the welcome application.

@dalto I tried setting up a cron to do updates for me, apparently badly since indeed my package were not updated. ups, doing that now and hoping it’ll fix it.

I also noticed disk descryption at startup is very slow (cca 20 seconds) so I tried disabling disk caching for firefox and providing generous amounts of memory to cache, but that didn’t solve it.

1 Like

Updates on Arch-based distros require manual intervention. You should never try to automate them.

Err…huh? The slow decryption on startup has nothing to do with Firefox. It is because the decryption is happening in grub which has a software-based decryption engine which is sub-optimal.

I assume the hard-drive being encrypted might cause a slowdown if it was trying to write a lot of separate files, but I guess not the case

Didn’t know the bit about grub, it’s interesting that it didn’t happen with ubuntu, but I just assumed endevour uses another type of disk encryption and ignored it.

Ubuntu probably ships with unencrypted /boot so the decryption is handled by the initram instead of by grub.

Sadly enough, after an update to Mozilla Firefox 107.0.1 + killing firefox and restarting it, the lag still persist :frowning:

Could be a extension that make your firefox hang. Happen to me multiple time. Try to disable all your extension and see.

I tried disabling all extensions (+ killed firefox and restarted) – same lagginess still appears. Also tried turning off webgl rendering and it persisted (but worst, which I’d expect)

Did you try with a new created profile ?

firefox -P
1 Like

It is not a real solution, but I just want to share that I had last week the exact same issue with Firefox on EOS… after having try to resolve the issue (new profile, no extensions, etc…) I ended to replace Firefox with Brave.
Quite happy at the moment. I still have Firefox (didn’t uninstall it) but at the moment I don’t use it.

If you used a cron job to perform updates (not recommended for rolling release distros, btw), then perhaps some other out-of-date package is the culprit? Did you perform a full system update and then reboot your machine before testing it again? If your core system packages get updated, you usually need to reboot for the changes to take effect?

If that doesn’t work, then it’s certainly strange, because firefox runs fine on my machine.

I use both ff and ff-dev and this happens with either one randomly. It’s been happening for just about a week now for me as well.

And the same as @pierrep56 I just use Brave as a “workaround” of sorts.

I was actually waiting for someone to post about this hoping there’d be a solution because there are only two reasons I don’t use Brave full-time:

  1. support a browser that isn’t based on chromium
  2. auto-scroll in chromium-based browsers doesn’t exist w/o a cumbersome extension

Gonna finally do a Brave Search and see if I can find a solution on the web.

My ff by the way:

@George3d6 Some users have reported that Firefox’s performance is negatively affected by a built-in extension called Pocket. You can try disabling Pocket and see if it helps.

Open Firefox and type about:config in the address bar. A warning page may appear by default, so you have to click “Accept the Risk and Continue”. Once you’re in the config page, search for extensions.pocket.enabled and set the toggle to false.

P/S: I never use Pocket and quite frankly consider it bloatware. I do not understand why Firefox’s developers chose to have Pocket built into Firefox.

Now Brave is also giving a problem where it randomly crashes when I select words on a page. That’s really weird. Is this a boogle attack?

Just thought I would share my experience with distro’s and browsers over the last couple weeks.

1st off, I tried several different distro’s, I installed them on my PC and was not using a virtual machine. I had problems with Firefox starting slow regardless of the version, even tried downgrading but that didn’t help either. On EndeavourOS on a fresh install and a fresh Firefox install with nothing setup, regardless of what the start page address was set to the startup time was really slow, I got the same results with other browsers also that I tried.

So I tried ArcoLinux and had the same results. Seems like Microsoft Edge Beta loaded okay but the other browsers were slow to start that I tried, from Brave to Vivaldi, Chromium etc…

So I thought I would try Peppermint Linux Debian based with the Firefox-ESR, that give me the same results having a really slow startup.

In the end I installed Linux Mint Ubuntu and for some odd reason Firefox and other browsers I have tried are super fast to startup.

I never had that problem with Arch Based or Debian based distro’s until the last few weeks. I’m wondering if it might be a library file change or network update change or something along those lines that is causing the issue as it seems to be related to more than just one browser or Firefox in my case.

Like I said the issues seemed to be occurring with all browsers except for Microsoft Edge Beta on the distro’s I tried. But even at that MSE Beta on a few distro’s was slow to start also.

Hopefully there will be a solution to this soon. I prefer to run an Arch based system like EndeavourOS but the slow browser start is a problem for me.

I have a lot of Websites where I have them setup using Peppermint ICE SSB software, it comes in real handy for several things. For example, I can create a Radar website SSB with ice-dev and add UBlock to it to block all the ads in it, then I create a script to launch it with adding wmctrl to set the size of the window and have xdotool automatically click the play button to animate the radar, lot of sites force you to click a button to do that, with my script I just create a taskbar link and click it once and everything is automated. Hope I explained that right.

Just to add to that, I also tried different graphics card driver versions to see if that would fix anything but it didn’t. Right now I am on Nvidia GPU Driver 525.60.11 which I tried on all except the Peppermint Debian distro and had the same problems. On Linux Mint I’m not having those issues.

Just thought I would mention this in case it might help someone come up with a solution to the problem.

strange . it open instant here ( around 3sec ) i can live with that