Skip to content

Higher precision timers using WebWorkers #4

@3rd-Eden

Description

@3rd-Eden

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions