InstantPWA on Svelte / SvelteKit
SvelteKit's src/app.html is the perfect drop-in point. The snippet fires on every route, regardless of whether you use adapter-static, adapter-vercel or adapter-node.
Install: Full support
Web push: Full support
SvelteKit 1+ and legacy Svelte apps.
How to set it up
- 1
Open src/app.html
Paste the snippet just before %sveltekit.body%.
- 2
npm run build
The snippet is included in every page shell.
- 3
Deploy and test
Verify on the live URL from a phone.
Want the full technical guide?
Manifest, service worker and code samples for Svelte / SvelteKit.
FAQ
Does it work with adapter-static?+
Yes — the snippet is baked into the prerendered HTML, so there's no runtime dependency.