perf: change listener from after-swap to page-load to improve view transition smoothness

- fix theme guide error
- update readme
This commit is contained in:
radishzzz 2025-04-13 11:18:47 +01:00
parent 59297d534e
commit 3a002d61ca
13 changed files with 18 additions and 16 deletions

View file

@ -61,7 +61,7 @@ function initWaline() {
}
initWaline()
document.addEventListener('astro:after-swap', initWaline)
document.addEventListener('astro:page-load', initWaline)
</script>
<!-- Custom CSS Styles >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->