HackTimer
HackTimer copied to clipboard
If the worker is not set in global scope, it gets GC'd
Although this is a browser bug, many in-use versions of Chrome and possibly also Firefox and other browsers can GC web workers that don't have a reference in the window global scope. This causes a lot of weird issues like everything appears to work - then suddenly no more messages from the web worker arrive.