Orchestrating web workers

Plain JavaScript version

See this blog post