- Keeping Three.js off the critical path: Stage3D defers hero WebGL initialization until window.load + requestIdleCallback (or immediate pointer/touch interaction), renders a matching-size SVG/CSS fallback so CLS stays 0, and switches Canvas frameloop to "demand" when scrolled offscreen via IntersectionObserver. - Single semantic DOM across 3 themes: Editorial, Futuristic, and Minimal swap CSS variables, typography, and 3D materials using a pre-paint data-design attribute instead of separate routes. - Dual HTML / Markdown output: proxy.ts parses quality-weighted Accept headers so `curl -H "Accept: text/markdown" https://deepak-chauhan-portfolio-flax.vercel.app/` returns clean Markdown while browsers get SSR HTML.
Architecture write-up: https://deepak-chauhan-portfolio-flax.vercel.app/notes/three...
Would appreciate any feedback on WebGL fallback/performance across devices or the content-negotiation setup.