Hacker News new | ask | show | jobs
by blasterford 5214 days ago
I hope there are simple ways to disable these on browsers.

Can't imagine every tab having a load of workers in the background, ending well.

One of the pleasant things about javascript is that there are no threads. It's a shame some people have pushed for this API.

After all, it's not rocket science for a competent developer to split a long running task into chunks which are periodically run via a timeout, keeping the UI responsive.

1 comments

While I agree most things could be split into chunks with a timeout, there's definitely a place for web workers, for example in canvas image processing.
I wholeheartedly agree. I had some code that had to parse several different .ply files and creat the respective 3D models, and without web workers, the process was unbearably long.