Wrote an article
🖼 Optimise your ❤️ Svelte site with WebP background images.

You see how to add a JPEG fallback with SvelteKit in this video.

You generate cached WebP images with no hassle too!

Hope you find it useful!

https://rodneylab.com/sveltekit-next-gen-background-image/