if the user is using wayland instead of x11 which can be determined using the env value of XDG_SESSION_TYPE, append MOZ_ENABLE_WAYLAND=1 in /etc/environment for firefox rpm. this should speed up firefox in wayland users.
while for firefox flatpak, the --socket and --env of firefox org.mozilla.firefox with sudo flatpak override:
sudo flatpak override --socket=wayland --env=MOZ_ENABLE_WAYLAND=1 org.mozilla.firefox
this defaults to system wide change, although for user, --user can be used and sudo can be removed.
if the user is using wayland instead of x11 which can be determined using the env value of
XDG_SESSION_TYPE, appendMOZ_ENABLE_WAYLAND=1in/etc/environmentfor firefox rpm. this should speed up firefox in wayland users.while for firefox flatpak, the
--socketand--envof firefoxorg.mozilla.firefoxwithsudo flatpak override:this defaults to system wide change, although for user,
--usercan be used andsudocan be removed.