Skip to content

Commit 5b0d5b8

Browse files
Update index.astro
1 parent 5277825 commit 5b0d5b8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

landing/src/pages/index.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,7 @@ import MainPage from '@layouts/MainPage.astro';
312312
}
313313

314314
function ready() {
315-
document.addEventListener('DOMContentLoaded', init);
316-
// Also listen for Astro page transitions
315+
// Only listen for astro:page-load which fires on both initial load and transitions
317316
document.addEventListener('astro:page-load', init);
318317
}
319318

0 commit comments

Comments
 (0)