15 Useful SvelteKit Code Snippets — A Cheat Sheet | by Daniel Ellis Research | Jul, 2022

A collection of useful features encountered when working with Svelte and Svelte-Kit Photo by Luca Bravo on Unsplash We often want to load our page before concentrating on resource-heavy items such as videos. Here we use a promise to check the page is ready, before loading those components. let domReady = (function () {return new … Read more