As explained in the primus/primus#350 issue it's possible that Chrome on Android is actually suspending timers when you background your application. This can have unwanted side affects. So the idea is to add WebWorker support in to tick-tock which allows you configure if you want to use a background mode when available.
Now, we probably want to use a WebWorker and a blob + the URL instance so we can create workers without the requirement of downloading additional files. In addition to that, the worker should only be started once for the lifetime of the module so all ticktock instances use the same worker instance.
As explained in the primus/primus#350 issue it's possible that Chrome on Android is actually suspending timers when you background your application. This can have unwanted side affects. So the idea is to add WebWorker support in to
tick-tockwhich allows you configure if you want to use abackgroundmode when available.Now, we probably want to use a WebWorker and a
blob+ theURLinstance so we can create workers without the requirement of downloading additional files. In addition to that, the worker should only be started once for the lifetime of the module so allticktockinstances use the same worker instance.