Skip to main content

Events

Edit this page on GitHub

SvelteKit emits CustomEvents on the window object when certain things happen:

  • sveltekit:start — fired once the app has hydrated
  • sveltekit:navigation-start — navigation has started
  • sveltekit:navigation-end — navigation has ended

You probably won't need to use these, but they can be useful in the context of (for example) integration tests.