Yes and no. There is no hard limit with web workers, but you are limited by available processor and memory.
There is a rather large amount of costs for the processor and memory that comes with each worker so that you can finish the machine to shredding if you have allocated a lot of workers.
I would say that Web Workers is best used for “lengthy” background tasks of 100 milliseconds or more.
buley Jun 15 2018-12-15T00: 00Z
source share