Loading video player...
Ever wondered how to properly load data in SvelteKit? In this video, we’ll go step by step through fetching data with server loaders using Drizzle and SQLite. You’ll learn how to structure layout and page loaders, handle pagination through URL parameters, and see how SvelteKit runs loaders in parallel and streams results for better performance. By the end, you’ll have a clear, efficient system for loading and displaying data in any SvelteKit app. Repo: https://github.com/thitemple/sveltekit-core-concepts-examples Chapters: 00:00:00 - Introduction 00:00:36 - Database and Server Setup 00:01:28 - Loading Data in Layout 00:02:09 - Returning Data for Page 00:03:39 - Loading Data in Page 00:05:41 - Parallel Execution 00:08:15 - Streaming Data to the Page 00:11:49 - Pagination and Data Loading 00:14:16 - Understanding Load Function Execution 00:18:20 - Bonus Performance Tip 00:19:36 - Conclusion and Next Steps Say hi / more • Newsletter & notes: https://thitemple.me • Bsky: https://bsky.app/profile/thitemple.me • X (Twitter): https://x.com/thi_temple