This survey closed on December 1, 2022. View Survey Results »

navigator.serviceWorker.register("/sw.js")

A low-level API for rendering 2D and 3D graphics with the GPU on <canvas> , based on OpenGL.

js
const gl = canvas.getContext("webgl");

Encapsulate elements not visible from the outside, and style them with CSS not affecting the rest of the page.

js
this.shadowRoot = this.attachShadow({mode: "open"});

Create AR/VR sessions with compatible output devices.

js
const xr = navigator.xr;
const session = await xr?.requestSession("immersive-vr");