Top "Web-worker" questions

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

How to create a Web Worker from a string

How can I use create a Web worker from a string (which is supplied via a POST request)? One way …

javascript web-worker data-uri
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 …

javascript web-worker
Accessing localStorage from a webWorker

Can a WebWorker access the localStorage? If not why not? Is it problematic from a security stand point?

javascript html local-storage web-worker
How to make web workers with TypeScript and webpack

I'm having some issues with properly compiling my typescript when I attempt to use web workers. I have a worker …

typescript webpack web-worker
Using transferable objects from a Web Worker

I currently have this code to create a Web Worker: w = new Worker("webwork.js"); w.onmessage = function(event) { alert(…

javascript web-worker transferable
Detect whether postMessage can send objects?

I'm looking for a neat way to detect whether postMessage in the browser supports the sending and receiving of objects …

javascript html dojo web-worker postmessage
Sharing websocket across browser tabs?

We want to have one socket per browser rather than one per tab in a browser. How can we achieve …

javascript html node.js websocket web-worker
What can service workers do that web workers cannot?

What can service workers do that web workers cannot? Or vice versa? It seems that web workers are a subset …

javascript html service-worker web-worker w3c
Web Workers - How To Import Modules

I am using ES2015 Import / Export modules. In my worker file, when I try to import functions like I normally …

javascript import module ecmascript-6 web-worker
How to access jQuery in HTML 5 web worker

I am unable to to access jQuery inside an HTML5 web worker. Is there a way I can do that?

javascript jquery html web-worker