low-level-web-rendering
Installation
SKILL.md
Low-Level Web Rendering
Understand how pixels actually get on screen, then pick the right tool: DOM, Canvas 2D, or GPU (WebGL/WebGPU).
The browser render pipeline
Each frame the browser may run, in order:
- JS — your handlers/animations mutate the DOM/styles.
- Style — compute which CSS rules apply (recalc styles).
- Layout (reflow) — compute geometry/positions. Triggered by size/position/text changes.
- Paint — fill pixels for each layer (text, colors, images, borders).
- Composite — the GPU assembles layers into the final image.
Cheapest path: change only composite (transform/opacity). Most expensive: trigger layout every frame.