If you can install a Flatpak or .deb package of Firefox, you should regain that performance. Found a post recommending a "Mozilla Team" PPA at https://ubuntuhandbook.org/index.php/2022/04/install-firefox..., but I last used Ubuntu 15 years ago, so I can't speak to the specific recommendations therein.