Initial commit

This commit is contained in:
Samraaj Bath
2026-06-29 15:11:48 -07:00
commit 66dfdcc58d
404 changed files with 45970 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
// Initializes the shared capture bucket that every other hook writes into.
// Runs first because hooks load in lexicographic order.
(() => {
if (window.__CLONE_CAPTURE__) return;
window.__CLONE_CAPTURE__ = {
shaders: [],
gsap: [],
framer: [],
lottie: [],
threejs: [],
cssVars: {},
fonts: [],
};
// Sentinel the capture script waits on after DOMContentLoaded + a tick.
// Hooks that dump state on demand (gsap, framer) set __CLONE_READY__ when they've run.
window.__CLONE_READY__ = false;
window.addEventListener('load', () => {
setTimeout(() => {
try {
if (typeof window.__CLONE_FINALIZE__ === 'function') window.__CLONE_FINALIZE__();
} catch {}
window.__CLONE_READY__ = true;
}, 800);
});
})();