Here's how you can grab the URL of the current page in Svelte.
You can work with asynchronous data in Svelte components.
You can watch for incoming state changes to a component in Svelte.
You can reactively read the current dimensions of an element in Svelte.
Svelte makes it easy to create a custom component event listener.