If you visited the demo page, you may notice that the worker doesn't seem to work. I am currently unsure about the nature of the problem, but most likely lies on some GitHub Pages restriction.
Feel free to clone this repository and run the Sveltekit demo project locally, where it should work flawlessly.