PROBLEM
I\'ve discovered that there is a limit on the number of Web Workers that can be spawned by a browser.
Example
The way you're chaining your Workers in the solution #1 impeach the garbage collector to terminate Worker instances because you still have a reference to them in the scope of your onmessage callback function.
Give a try with this code: