Top "Web-worker" questions

Questions with this tag should be about the "Web Workers" technology.

Cross Domain Web Worker?

I have https://domain1.com (domain1) and https://domain2.com (domain2). Domain2 serves a page containing javascript with this header: "…

javascript html cross-domain web-worker
Service Worker vs Shared Worker

What is the difference between Service Worker and Shared Worker? When should I use Service Worker instead of Shared Worker …

javascript html web-worker service-worker
multi-core programming using JavaScript?

So I have this seriously recursive function that I would like to use with my code. The issue is it …

javascript html parallel-processing web-worker
Web Workers - Transferable Objects for JSON

HTML 5 Web workers are very slow when using worker.postMessage on a large JSON object. I'm trying to figure out …

javascript json html web-worker
Javascript not resolving worker path relative to current script

I have a script at http://localhost/js/foo.js which needs to spawn a Web Worker from the file …

javascript web-worker
Get Cloudflare's HTTP_CF_IPCOUNTRY header with javascript?

There are many SO questions how to get http headers with javascript, but for some reason they don't show up …

javascript cloudflare web-worker geoip
how to pass large data to web workers

I am working on web workers and I am passing large amount of data to web worker, which takes a …

javascript web-worker
Opinion about synchronous requests in web workers

I want to know what do you think about this. Is recommended to use synchronous requests (XMLHttpRequest) in a web …

javascript ajax xmlhttprequest web-worker
Is it possible to cause Web Workers to Sleep?

Since web workers negate the disadvantages of paused execution in JavaScript, as they will not block UI, is there a …

javascript sleep web-worker
What happens to a Web Worker if I close the page that created this Web Worker?

Let's say I have a page called Main.html that creates a web worker. If I close the Main page …

javascript html google-chrome firefox web-worker