Are you running Wayland? Make sure Firefox was running in Wayland mode. Fedora had a separate package for Wayland Firefox for some time, though it might be the default in 31. XWayland can result in a performance hit.
https://fedoraproject.org/wiki/Changes/Firefox_Wayland_By_De...