Web workers
E242829
Web workers are a web platform feature that enable running JavaScript in background threads separate from the main UI thread to perform computationally intensive or asynchronous tasks without blocking user interactions.
All labels observed (3)
| Label | Occurrences |
|---|---|
| Web Workers | 8 |
| Web Worker | 1 |
| Web workers canonical | 1 |
Statements (47)
| Predicate | Object |
|---|---|
| instanceOf |
Concurrency mechanism
ⓘ
Web API ⓘ Web platform feature ⓘ |
| benefits |
Keeping UI smooth during heavy computation
ⓘ
Offloading CPU-intensive algorithms ⓘ |
| canAccess |
XMLHttpRequest (with limitations)
ⓘ
importScripts function ⓘ setInterval ⓘ setTimeout ⓘ |
| cannotAccess |
DOM directly
ⓘ
document object ⓘ window object ⓘ |
| communicatesWith | Main thread via message passing ⓘ |
| createdFrom | External JavaScript file URL ⓘ |
| createdWith | Worker constructor ⓘ |
| definedIn | HTML Living Standard ⓘ |
| improves |
Performance of web applications
ⓘ
Responsiveness of web applications ⓘ |
| introducedTo | Enable multi-threading in JavaScript ⓘ |
| lifecycleControlledBy | Main thread ⓘ |
| partOf | HTML5 specification ⓘ |
| prevents | Blocking user interactions ⓘ |
| providedBy | Web browser ⓘ |
| restrictedBy | Browser security sandbox ⓘ |
| runsIn | Background thread ⓘ |
| runsLanguage | JavaScript ⓘ |
| securityModel | Same-origin policy ⓘ |
| separateFrom | Main UI thread ⓘ |
| standardizedBy |
W3C (earlier drafts)
ⓘ
WHATWG ⓘ |
| supports |
Non-blocking computation
ⓘ
Parallel execution of JavaScript ⓘ |
| supportsEvent |
error
ⓘ
message ⓘ |
| supportsType |
Dedicated worker
ⓘ
Service Workers ⓘ
surface form:
Service worker (conceptually related but separate API)
Shared worker ⓘ |
| terminatedBy |
self.close()
ⓘ
worker.terminate() ⓘ |
| usedFor |
Asynchronous tasks
ⓘ
Computationally intensive tasks ⓘ Offloading work from main thread ⓘ |
| usedIn |
Data processing in web apps
ⓘ
Image and video processing in browser ⓘ Real-time data analysis in web applications ⓘ |
| uses |
MessageEvent interface
ⓘ
postMessage API ⓘ |
Referenced by (10)
Full triples — surface form annotated when it differs from this entity's canonical label.
this entity surface form:
Web Workers
subject surface form:
Service Worker
this entity surface form:
Web Worker
subject surface form:
URLSearchParams
this entity surface form:
Web Workers
this entity surface form:
Web Workers
this entity surface form:
Web Workers
this entity surface form:
Web Workers
this entity surface form:
Web Workers
this entity surface form:
Web Workers
this entity surface form:
Web Workers