mirror of
https://github.com/storytold/artcraft-services.git
synced 2026-11-25 20:12:24 +01:00
Returning to the page via browser Back (e.g. from the /download redirect's external target) restored it from the bfcache in Firefox: the JS heap thaws but the WebGL context is discarded, so the galaxy canvas came back blank and the rAF-driven instruments looked unmounted. Chrome restores GPU state, which is why it never showed. The pre-paint head script now attaches a pageshow listener that reloads on e.persisted — the listener lives inside the frozen page, so it fires on the restore itself. The intro is seen-flagged by then and the page is statically prerendered, so the reload is cheap. Claude-Session: https://claude.ai/code/session_01KpbGFYxEXuaYU9J75vTK9j