Google intentionally slows down YouTube on Firefox by 80% by using old libraries that are unsupported by Firefox because they were deprecated.
https://9to5google.com/2018/07/25/youtube-chrome-firefox-edge-speed-mozilla/