diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-26 01:07:50 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-26 01:07:50 +0100 |
commit | 9918784ba0b71b406e98e069a4e2be10bf72f02e (patch) | |
tree | de8c3a4e096913908645324e82b565034b9061c1 /web/script/transition.ts | |
parent | c58099970f53fbd94c36193f77b06c5eb1f329b1 (diff) | |
download | jellything-9918784ba0b71b406e98e069a4e2be10bf72f02e.tar jellything-9918784ba0b71b406e98e069a4e2be10bf72f02e.tar.bz2 jellything-9918784ba0b71b406e98e069a4e2be10bf72f02e.tar.zst |
stop loading old site when transitioning
Diffstat (limited to 'web/script/transition.ts')
-rw-r--r-- | web/script/transition.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/script/transition.ts b/web/script/transition.ts index 42dda80..4cbab41 100644 --- a/web/script/transition.ts +++ b/web/script/transition.ts @@ -31,6 +31,7 @@ function patch_page() { } async function transition_to(href: string, back?: boolean) { + stop() // nice! if (disable_transition) return window.location.href = href const trigger_load = prepare_load(href, back) await fade(false) |