Top "Web-worker" questions

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

What's the difference between Shared Worker and Worker in HTML5?

After reading this blog post: http://www.sitepoint.com/javascript-shared-web-workers-html5/ I don't get it. What's the difference between a Worker …

javascript html web-worker
Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope'

I am trying to import json data from web worker using importSctipts, the following error occurs. Uncaught NetworkError: Failed to …

javascript web-worker
Transfer file to webworker: DataCloneError: The object could not be cloned

I want to transfer a file from a form to a webworker. In chrome i simple can use this code …

file web-worker pass-data
Angular CLI generated app with Web Workers

Reading the Angular Documentation, you can find several references to bootstrap your whole Angular app inside a Web Worker, so …

angular web-worker
Creating a web worker inside React

I have a React app created with create-react-app, not ejected. I'm trying to use web workers. I've tried the worker-loader …

reactjs webpack web-worker create-react-app
'Uncaught Error: DATA_CLONE_ERR: DOM Exception 25' thrown by web worker

So I'm creating a web worker: var arrayit = function(obj) { return Array.prototype.slice.call(obj); }; work = arrayit(images); console.…

javascript jquery html dom web-worker
Why can't Web Worker call a function directly?

We can use the web worker in HTML5 like this: var worker = new Worker('worker.js'); but why can't we …

html web-worker
JavaScript Web Worker - close() vs terminate()

I'm not totally understanding the difference between the close() vs terminate() methods for Web Workers. I've read the descriptions here …

web-worker
Use ServiceWorker cache only when offline

I'm trying to integrate service workers into my app, but I've found the service worker tries to retrieve cached content …

javascript browser-cache web-worker service-worker
Web Workers handling AJAX calls - optimisation overkill?

I'm working with a code that handles all AJAX requests using Web Workers (when available). These workers do almost nothing …

javascript ajax asynchronous web-worker