Performance: Why SvelteKit handles full-stack routing
MEDIUM IMPACT
This affects page load speed and interaction responsiveness by managing routing on both client and server efficiently.
Using SvelteKit's full-stack routing that handles routing on server and client with partial updates and client-side navigation.Using traditional server-side routing with full page reloads for every navigation, e.g., classic multi-page app with <a href=""> links that reload the entire page.
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Full page reload navigation | High (reloads entire DOM) | Multiple reflows | High paint cost | [X] Bad |
| SvelteKit full-stack routing | Low (updates only changed parts) | Single reflow | Low paint cost | [OK] Good |