WorkletGlobalScope
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The WorkletGlobalScope
interface is an abstract class that specific worklet scope classes inherit from. Each WorkletGlobalScope
defines a new global environment.
Note:
You don't normally need to interact with this interface. It is a base interface intended to be subclassed. You will encounter the subclasses AudioWorkletGlobalScope
inside AudioWorklet
objects, or PaintWorkletGlobalScope
inside CSS paint Worklet
objects.
Instance properties
None.
Instance methods
None.
Specifications
Specification |
---|
HTML # workletglobalscope |
Browser compatibility
BCD tables only load in the browser