SvelteKit and the move away from virtual DOM overhead
Svelte 5 delivers bundle sizes between 3 and 12 KB by compiling components to optimized vanilla JavaScript. This approach eliminates virtual DOM overhead, resulting in faster First Contentful Paint times of roughly 800 ms compared to 1200 ms for React 19.
Svelte 5 delivers bundle sizes between 3 and 12 KB. This provides a sharp contrast to Vue 4 at approximately 22 KB and React 19 at 42 to 45 KB. The framework compiles components to highly optimized vanilla JavaScript at build time. This approach eliminates the need for a virtual DOM. Developers see faster First Contentful Paint times of roughly 800 ms with Svelte compared to 1200 ms for React. Svelte 5 runes provide fine-grained reactivity through $state, $derived, $effect, and other properties. This system avoids the manual dependency arrays required by React hooks. Developers switching from React often cite reduced cognitive load because they no longer manage useEffect dependencies or memoization pitfalls. Svelte 5 reactivity updates text nodes directly instead of performing virtual DOM diffing. While React developers manage complex rendering cycles through hooks and manual dependency arrays, Svelte 5 uses runes like $state and $effect to provide fine-grained reactivity that updates the DOM directly without a virtual DOM. Svelte’s performance also results in lower memory usage and lower Time to Interactive in complex applications. Svelte feels like enhanced HTML, CSS, and JavaScript rather than a new paradigm.
Vite 4 and comparison of runtime weights
Vite 4 supports Nuxt and SolidStart alongside SvelteKit. The Vite 4 release uses Rollup 3 at build time. The team also added support for SWC, which is a Rust-based bundler. SWC is 20x faster than Babel. This upgrade helps close the performance gap with Turbopack. The Vite 4 upgrade was motivated by the breaking upgrade from Rollup 2.0 to 3.0, which occurred a few weeks before ViteConf 2022. Vite 4 also upgrades the versions of dotenv and dotenv-expand. Developers must now wrap names containing backticks with quotes.
| Framework | Bundle Size | First Contentful Paint |
|---|---|---|
| Svelte 5 | 3 – 12 KB | ~800 ms |
| Vue 4 | ~22 KB | N/A |
| React 19 | 42 – 45 KB | ~1200 ms |
SvelteKit provides server-side rendering, code splitting, static site generation, and adapters with zero configuration. It uses a file-based routing system similar to Nuxt. Developers define routes by how they structure the file system in the routes directory. You know how much boilerplate React requires for a simple state change. Svelte simplifies this by using built-in stores or global $state objects. SvelteKit contains an automatic routing system that generates routes without additional code. The framework has a built-in development server and code splitting to keep applications responsive. Recent January 2026 updates for SvelteKit include better CSP hydration and direct Cloudflare and Vercel adapters. The Svelte ecosystem includes over 35,000 npm packages. Core production stacks typically include svelte, @sveltejs/kit, and typescript.
Routing logic and developer migration costs
Migration costs vary depending on the starting framework. Teams moving from Vue typically spend 1 to 2 weeks on migration. Developers moving from React spend 2 to 4 weeks because of the mental model shift. Svelte 5 saw 40% growth in 2025, with companies including Apple, IKEA, Yelp, Grammarly, and Vercel using it in production.
Remix 3 is a different kind of change where the framework moves away from React to use web platform primitives. It bundles routes, request handlers, middleware, and database management under one umbrella. The frontend uses a forked Preact and an imperative model where state is a plain variable. This approach uses a this.update() call to signal that something changed. Some developers find Remix 3 unrecognisable compared to its previous versions, and the team is also known for breaking changes. Remix 3 uses Fetch API routes and controllers that return Response objects. Server-driven UI arrives through "frames", which are server-rendered fragments with a src that load and reload independently. Events use a universal on prop and async work uses standard AbortController signals. Remix also introduces unbundling, where the runtime rather than a bundler is the source of truth. Early adopters documented full rewrites in a public migration PR.
SvelteKit handles data fetching through +page.ts or +page.server.ts files. Dynamic routes work by wrapping folder names in square brackets. The framework uses +page.svelte for the main UI and +layout.svelte to share UI across child routes. SvelteKit also uses +layout.ts, +layout.server.ts, +server.ts, and +error.svelte to manage application logic. Svelte allows for easy animations, such as using transition:fade for a single line of code. SvelteKit also includes use:enhance to turn standard HTML forms into progressive enhancement tools. Next.js 15 required complex code involving use server, use client, and revalidatePath to manage data between Server and Client components. SvelteKit’s layout system is more intuitive than Next.js’s nested layouts. Will the growing Svelte ecosystem eventually match the massive library count of React? Use SvelteKit for startups and small teams that value velocity.