Skip to content
05The Code Museum

View source

Thirteen chapters in how the Web was built, each with a working example you can edit. Your code runs in a sandboxed frame with no access to this museum, your storage or your cookies.

2015 onward

Progressive web apps

Alex Russell and Frances Berriman coined "progressive web apps" in 2015 for sites that can be installed, work offline through service workers and send notifications.

Service workers cannot register inside this sandbox (it has no origin of its own), so the example checks which PWA capabilities your browser exposes and shows a manifest.

Tab inserts spaces · press Esc then Tab to leave the editor

Live preview · sandboxed

The preview iframe uses sandbox="allow-scripts allow-modals" without allow-same-origin: scripts run, but in an opaque origin isolated from Webvolution.