Skip to content

Tag: web-worker

make d3 force static layout more quickly

I am new in d3js. I rendered a graph ~10000 nodes. I used web worker and static force render ( because normal render is costing more than twice than the web worker). When the range was 10000, it will cost almost 20 seconds, you can see it at console, so how to reduce this times? jsfiddle Answer You are lookin…

How to use PixiJS in web worker

I need to display a quite complex 2D shape in a canvas using PixiJS and to do so I’d like to create and define all graphic elements in a separate thread (web worker) to not block the rest of the UI. The problem is that when I import PixiJS in the web worker file like this it gives me an

Global variable in Web worker

I am using this Web worker which has a Global variable declared in it. Can I access the same (Global variable in worker 1) in the newly spawned web worker(worker 2)? When I’ve tried using jQuery in web worker, I get error “window is not defined”. Is there any way to use jQuery in a Web Worke…