
A continuously redrawn audio display can compete with text selection and transport buttons. OffscreenCanvas can give a worker ownership of the drawing surface. The browser interface at the center of this behavior is OffscreenCanvas.
The interface behind the interaction
The useful boundary for this test is the point where OffscreenCanvas hands control back to the application. Write down what the user did just before that point and which result the page could observe. This makes a failure reproducible even when two devices show different prompts or expose different hardware.
What to record during the test
Compare pointer latency while repainting on the main thread and while rendering on a worker. Keep canvas size and drawing commands unchanged.
Keep one repeat with the ordinary controls and another with the edge case described above. Compare the last successful step on each device. A one-line result that names the step and its outcome is more useful to the next person than a blanket label of “works” or “broken.”
Check the individual members
The compatibility record for a whole interface can predate a particular capability. The implementation decision for OffscreenCanvas depends on which member the application actually uses. Read the three desktop entries in order: Chrome, Firefox, then Safari.
OffscreenCanvas— version 69, version 105, version 16.4.contextlost_event— version 99, version 125, no support recorded.contextrestored_event— version 99, version 125, no support recorded.
Which browsers record support for OffscreenCanvas?
All six browser families in the table have an unprefixed entry without a flag or a partial-implementation marker for this interface. The earliest recorded versions differ across families. A broad row of positive entries still leaves individual members, device access and platform limits to examine.
| Browser family | First recorded standard entry |
|---|---|
| Chrome desktop | Version 69 |
| Firefox desktop | Version 105 |
| Safari on macOS | Version 16.4 |
| Chrome on Android | Version 69 |
| Firefox on Android | Version 105 |
| Safari on iOS | Version 16.4 |
Source snapshot: MDN Browser Compatibility Data 8.1.10, 19 November 2026. “Version” is the first recorded entry in this comparison. Individual methods can have later introduction dates.
Plan for the unavailable case
Plan for context creation to fail and keep usable audio controls on the main thread. Smaller canvas dimensions may provide more value than a thread change.
typeof globalThis.OffscreenCanvas !== "undefined"This expression checks the interface or property in the current JavaScript environment. A positive answer does not run the device test above. Consult the member-level entries for OffscreenCanvas, contextlost_event, contextrestored_event when any of them is a requirement.
Sources and further reading
- OffscreenCanvas reference and member details
- Interface specification
- MDN compatibility data, version 8.1.10
Cover photograph: Rackmount-Trifold-KVM-Layflat by David Lippincott for Chassis Plans. CC BY-SA 3.0. Cropped and typeset for this cover. The photograph illustrates the topic. This image adaptation uses the same share-alike license.
