Web Workers API

GPTKB entity

Statements (51)
Predicate Object
gptkbp:instanceOf gptkb:REST_API
gptkbp:accessibleBy gptkb:XMLHttpRequest
navigator object
location object
importScripts
gptkbp:canBeTerminatedBy terminate() method
gptkbp:canCreate new ServiceWorker()
new SharedWorker()
new Worker()
gptkbp:category gptkb:REST_API
Web development
Concurrency
gptkbp:class postMessage
gptkbp:communicatesVia other workers
main thread
gptkbp:definedIn gptkb:WHATWG
gptkbp:doesNotHaveAccessTo gptkb:DOM
window object
gptkbp:enables Parallel execution of scripts
gptkbp:features No direct DOM access
Runs in isolated thread
https://www.w3.org/2000/01/rdf-schema#label Web Workers API
gptkbp:interface gptkb:ServiceWorker
gptkb:SharedWorker
Worker
gptkbp:introducedIn 2009
gptkbp:limitation No alert/confirm/prompt
No direct access to parent page
No synchronous XHR
gptkbp:mainEvent onerror
onmessage
onmessageerror
gptkbp:partOf gptkb:HTML5
gptkbp:purpose Run JavaScript in background threads
gptkbp:relatedTo gptkb:Service_Workers_API
gptkb:WebSockets_API
gptkb:Broadcast_Channel_API
gptkb:MessageChannel_API
gptkbp:specifies https://html.spec.whatwg.org/multipage/workers.html
gptkbp:supportedBy gptkb:opera
gptkb:Edge
gptkb:Safari
gptkb:Firefox
gptkb:Chrome
gptkbp:supports Service workers
Dedicated workers
Shared workers
gptkbp:supportsProtocol message passing
gptkbp:usedIn Web browsers
gptkbp:bfsParent gptkb:HTML_device_APIs
gptkbp:bfsLayer 5