Emscripten Crackling Audio

I apologize in advance if this is the wrong mailing list to ask this
question; please let me know if I need to go to the Emscripten list
directly instead.

Is there any way to get the audio output in Emscripten to run using
something like a web worker (or any other kind of background processing
mode at all)? When I test my audio on Firefox, as soon as something
happens in the browser window the audio stutters. It does not matter
what buffer size I use (I have tried 512, 4096 and everything in
between). I am not doing any heavy DSP, am just using the loopwave.cpp

Any tips would be highly appreciated.

Kind regards,

Philip Bennefall
P.S. Something to note is that audio doesn’t seem to work at all in
Internet Explorer, but I am almost certain that this is not SDL related.