mobile optimizations

This commit is contained in:
2026-04-06 14:33:30 -07:00
parent 1a445548f2
commit 16f271c1c9
5 changed files with 10 additions and 6 deletions

View File

@@ -74,8 +74,8 @@ const ogImage = "https://timmypidashev.dev/og-image.jpg";
});
document.addEventListener('astro:after-swap', function() {
var m = getMask();
// Wait for React to hydrate before revealing
setTimeout(function() { m.classList.remove('active'); }, 50);
// Wait longer for canvas + overlays to hydrate on index page
setTimeout(function() { m.classList.remove('active'); }, 150);
});
// Mark SPA navigations so AnimateIn can detect them
document.addEventListener('astro:after-swap', function() {