Lab notes
How this site is built
You just arrived with a cross-document View Transition — the header and headline morphed between two separate HTML pages. And this page was probably prerendered before you clicked, thanks to the Speculation Rules sent in an HTTP header.
The stack
- HTML, CSS and one ES module. No framework, no build step, no npm dependencies shipped to the browser.
- Progressive enhancement. Every demo has a working baseline; newer browsers get the extras.
- System fonts. Zero font downloads, zero layout shift.
Security, by default
- Content-Security-Policy allows only this origin — no inline scripts, no
eval, no third parties. - Trusted Types are enforced, so DOM-XSS sinks like
innerHTMLare blocked outright. - HSTS,
nosniff, a strict Referrer-Policy and a deny-all Permissions-Policy. - Cross-origin isolation (COOP + COEP + CORP) and clickjacking protection via
frame-ancestors 'none'. - No cookies, no analytics, no trackers — nothing to leak.
Cloudflare free plan features used
- Cloudflare Pages static hosting with unlimited bandwidth.
- A Pages Function (
/api/edge) — well inside the 100,000 free calls per day. - Universal SSL, HTTP/3, Brotli compression and global CDN caching.
- A custom
_headersfile for all security headers, and_routes.jsonso only/api/*invokes a function.