~/talk

How does SvelteKit Fare as a SPA Framework?

Talkat Svelte Summit Fall 2023 · on Saturday, 2023-11-11· [frontend-architecture]
name:Henry Lie
github:HenryLie
slides:none on file

Builds a static SPA for a SaaS dashboard using SvelteKit with assets as static files and JWT auth, and reports it works well for high‑interactivity apps. Uses +page.ts load functions with fetch and automatic typing to await route data, benefits from preloading on link hover for near‑instant navigation, and patches fetch client‑side via patching fetch via pre-sveltekit script proxy to attach tokens. Notes debugging load re-runs is tricky, script proxy forbids ESM, service worker caching is powerful but error‑prone. Overall, strong DX with a few engineering tradeoffs.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:01Why choose Svelte
  3. 3:41Developing an SPA
  4. 5:35SvelteKit for SPA
  5. 6:59Routing and file structure
  6. 11:21Data fetching with SvelteKit
  7. 13:44Preloading and user experience
  8. 16:11Challenges and solutions
  9. 21:03Alternative approaches
  10. 22:21Caching strategies
  11. 24:00Moving to SSR
  12. 25:35Conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.