Used discord on Firefox within the last week, no issues detected.
Disable all your plugins and check if this still happens, a few months ago I ran into an issue where every tab would load for a good few seconds before actually opening, even super lightweight stuff. Turned out to be caused by an addon that was umantained because the maintainer passed away.
Don’t remember which addon it was, but I can try and remember / search if you are interested.
If this was cpp, clang-tidy would tell you “do not use else after return”
I don’t know how null works in swift, but assuming it coerces to bool I’d write
if (a) return a; return b;