Dedicated workers
Widely available since 2018-01-29
The Worker()
constructor runs a script in its own thread, which can send and receive messages with the script that created it. Also known as web workers.
Learning resources on MDN
- DedicatedWorkerGlobalScope
- DedicatedWorkerGlobalScope: close() method
- DedicatedWorkerGlobalScope: name property
- Worker
- Worker: Worker() constructor
- Worker: error event
- Worker: terminate() method
- WorkerGlobalScope
- WorkerGlobalScope: error event
- WorkerGlobalScope: importScripts() method
- WorkerGlobalScope: location property
- WorkerGlobalScope: navigator property
- WorkerGlobalScope: rejectionhandled event
- WorkerGlobalScope: self property
- WorkerGlobalScope: unhandledrejection event
- WorkerLocation
- WorkerLocation: hash property
- WorkerLocation: host property
- WorkerLocation: hostname property
- WorkerLocation: href property
- WorkerLocation: origin property
- WorkerLocation: pathname property
- WorkerLocation: port property
- WorkerLocation: protocol property
- WorkerLocation: search property
- WorkerLocation: toString() method
- WorkerNavigator
Browser support (view on caniuse.com)
- Chrome 4 Released on 2010-01-25
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 4 Released on 2011-03-22
- Firefox for Android 4 Released on 2011-03-29
- Safari 4 Released on 2009-06-08
- Safari on iOS 5 Released on 2011-10-12
Specifications
- HTML (#workers), from HTML Workstream (WHATWG).
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature