Can you give an example of something JS heavy that is slow in Firefox? I haven't encountered something like that in a very long while.
The issue was mentioned on Bugzilla (at least) 11 years ago[2], performance remains abysmal.
[1] - https://developer.mozilla.org/en-US/docs/Web/API/CanvasRende...
I don't use Twitch much anymore, but the one time I opened it recently (for NeoVimConf), it seemed much better.