Top "Web-worker" questions

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

Using Web Workers for drawing using native canvas functions

It's possible to send a CanvasPixelArray obtained via getImageData to a worker script, and let the worker script manipulate the …

javascript html5-canvas web-worker drawimage
JavaScript multithreading

I'm working on comparison for several different methods of implementing (real or fake) multithreading in JavaScript. As far as I …

javascript multithreading google-gears web-worker
How to pass functions to JavaScript Web Worker

I would like to pass a function (or functions) via a postMessage() to a web worker, because I can't refer …

javascript web-worker
Is it feasible to do an AJAX request from a Web Worker?

I do not seem to be able to use jQuery in my webworker, I know there must be a way …

javascript jquery ajax web-worker
HTML5 Websocket within Webworker

I've managed to get websockets working inside a webworker using Chrome, but only for receiving data. When I try to …

javascript websocket web-worker
Is there a way to create out of DOM elements in Web Worker?

Context: I have a web application that processes and shows huge log files. They're usually only about 100k lines long, …

javascript jquery html web-worker
web worker console.log

Is it just me, or is console.log() too much to ask for from HTML5 web workers? I know that …

html console web-worker
Handle long-running processes in NodeJS?

I've seen some older posts touching on this topic but I wanted to know what the current, modern approach is. …

node.js multithreading multiprocessing web-worker
Access localStorage from service worker

I want to periodically call an API from my service worker to send data stored in the localStorage. This data …

javascript html service-worker web-worker
Get number of CPU cores in JavaScript?

Is there a way to determine the number of available CPU cores in JavaScript, so that you could adjust the …

javascript web-worker cpu-cores