I noticed something odd in the network tab of the dev console: the 'end.wav' file is repeatedly downloaded and the amount of transferred data keeps increasing. I would expect that media would be loaded once and reused instead of being downloaded repeatedly.
Viewing post in concentrator defense comments
i am aware of this, it was the only thing i could think of to make multiple of them at the same time, because otherwise every time you start playing it, the previous sound (from the same file) would stop, and it sounds pretty weird, as far as i know there isnt a way to make custom audio callback in JS, which ive done already in SDL, so there wouldnt be a problem to remake it in JS.
I didnt know it downloads the sound every time.
I dont think its the source of the lag, i think the obfuscation is