This survey closed on January 1, 2021. 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"});