This is an issue has been bugging me to no end. Whenever I open a website with multimedia, say a YouTube video, Spotify, links with video, etc. Firefox becomes unresponsive for a few seconds. The few times that it doesn’t, it causes any previously opened media to buffer e.g. having a YouTube video playing while opening another video causes both to go into buffering. Some quick points:
I’m not using the flatpak version. I first installed the ESR version from AUR, then switched to the firefox package from pacman
Chromium does not present any issues handling multimedia whatsoever
if it matters, I’m on a desktop PC connected to my wireless network through a Wi-Fi dongle. I had to install the driver from https://github.com/aircrack-ng/rtl8812au
Its definitely not a problem I have with firefox, but everyone has different hardware. I don’t know if the proprietary wifi dongle could be a problem. Posting hardware will also reveal your model… if thats the right driver, did you try via AUR?
Reporting back with my findings. I uninstalled the previous driver, updated my system and installed one of the drivers from the AUR. No working Wi-Fi interface.
After doing some probing, turns out I was using the wrong driver for the RTL8812au chipset, instead of the RTL8821au on my dongle. I installed the correct driver from AUR; lo and behold, Firefox runs much better now. I can open as many YouTube tabs without hanging or buffering! I’m surprised because, like I mentioned, no other program or network function showed any problems whatsoever.
Thank you @Zircon34, I wouldn’t have thought of it, if not for your suggestion.
That’s great, I kind of suspected it could be that. In general better idea to install via AUR.
I am not sure the exact cause in Firefox, but I guess the problem is solved then. My suggestions is to try this a bit, if it worked you can mark the thread as solved with the answer that fixed it so it can easily be found for the next user.