Articles · Web development · astro · eleventy · javascript · static-site generator · web-frameworks
Stop Shipping Useless JavaScript: 7 Web Frameworks Compared for 2026
Eleventy, Astro, SvelteKit, Qwik, Next.js, TanStack Start and Fresh, judged on JavaScript weight, SEO, learning curve and long-term risk.

The best web framework is the one that sends the least JavaScript for the job: Eleventy or Astro for content sites, SvelteKit or TanStack Start for apps, Next.js for React teams, and Qwik for interaction-heavy pages. This web frameworks compared guide explains why, and it is current as of the publishing date of this article, including Cloudflare's purchase of Deno and TanStack Start reaching 1.0.
Why JavaScript weight decides every framework choice
Every kilobyte of JavaScript must be downloaded, parsed and run before a page feels interactive, and that work hits mid-range phones hardest. Google measures the result through Core Web Vitals, which feed its page experience signals, so a heavy framework can cost you readers and search visibility at the same time.
The seven frameworks in this web frameworks compared guide answer that problem in four different ways:
Static generation builds finished HTML ahead of time, and nothing runs in the browser unless you add it. Eleventy and Hugo work this way.
Islands serve static HTML and hydrate only the components you mark as interactive, each on its own schedule. Astro and Fresh work this way.
Full hydration sends HTML, then re-runs the page's component tree in the browser to attach behavior. Next.js, SvelteKit and TanStack Start work this way, each with its own tricks to trim the cost.
Resumability skips hydration by writing listener references into the HTML and loading code only when the user interacts. Qwik works this way.

Read each row left to right: the less the browser must run on load, the faster the page tends to feel, which is why the choice of model matters more than any single feature.
The seven contenders at a glance
The seven frameworks fall into three tiers: content-first (Eleventy, Astro), full-stack (SvelteKit, Next.js, TanStack Start) and interaction specialists (Qwik, Fresh). Use the table to shortlist, then read the tier you care about.
Framework | Delivery model | UI layer | JavaScript by default | Best for | Main risk |
|---|---|---|---|---|---|
Eleventy | Static generation | Templates (Nunjucks, Liquid and more) | None | Blogs, docs, personal sites | No components or islands |
Astro | Islands, static or server | React, Vue, Svelte, Solid and more | None until you add an island | Content sites with light interactivity | Sharing state between islands is awkward |
SvelteKit | Compiled components, hydrated | Svelte | Small compiled bundle | Interactive sites and apps | Smaller hiring pool than React |
Next.js | Server components plus hydration | React | React runtime | Content sites that grow into apps | Heaviest baseline, fiddly caching |
TanStack Start | Client-first with server functions | React | React app bundle | Type-safe apps | Newest: stable only since Oct 13, 2026 |
Qwik | Resumability | Qwik | Tiny loader, lazy chunks | Interaction-heavy pages | New mental model, small ecosystem |
Fresh | Islands on Deno | Preact | None outside islands/ | Teams already on Deno | Deno runtime is winding down |

Eleventy and Astro sit where a blog or docs site wants to be. SvelteKit, TanStack Start and Next.js trade extra JavaScript for app features, and Qwik tries to keep the app features without the weight.
Content-first tier: Eleventy and Astro
If your site is mostly words and images, start here. Both frameworks send plain HTML by default, which is the cheapest thing a browser can load.
Eleventy: the quiet workhorse
Eleventy (11ty) turns a folder of templates and data into static HTML and does nothing else. There is no client runtime and no component model unless you add one, so the output stays about as small as a generator can make it.
Starter code
Bash
npm init -y
npm install @11ty/eleventy
npx @11ty/eleventy --serve// eleventy.config.js (set "type": "module" in package.json)
export default function (eleventyConfig) {
eleventyConfig.addPassthroughCopy('css');
return { dir: { input: 'src', output: '_site' } };
} ---
# src/index.njk
title: Hello from Eleventy
---
<h1>{{ title }}</h1>
<ul>
{% for post in collections.posts %}
<li><a href="{{ post.url }}">{{ post.data.title }}</a></li>
{% endfor %}
</ul>Pick it when
You want the smallest output and the least dependency churn.
Your pages need little or no interactivity.
Skip it when
You want components, islands or a typed content layer out of the box.
You expect to add interactive widgets on many pages.
Astro: the content-first benchmark
Astro renders pages to HTML on the server and ships no JavaScript until you mark a component as an island. Directives such as client:load, client:idle and client:visible decide when each island wakes up. It also accepts React, Vue, Svelte and Solid components on the same page.
Two recent facts matter for planning. Cloudflare acquired the Astro team in January 2026, and the project remains MIT-licensed. Astro 6 also requires Node 22 and changed several APIs from v5, per DevToolPicks.
Astro's Server Islands extend the idea to the server. A slow or personalised fragment, such as a greeting or a cart count, loads after the cached page.
Starter code
npm create astro@latest---
// src/pages/index.astro
import Counter from '../components/Counter.jsx';
const title = 'Hello from Astro';
---
<h1>{title}</h1>
<p>This paragraph ships zero JavaScript.</p>
<!-- Only this island loads JavaScript, and only when it scrolls into view -->
<Counter client:visible />Pick it when
You run a blog, documentation site or marketing site where Core Web Vitals drive traffic.
Your team mixes UI libraries, or you want typed Markdown through Content Collections.
Skip it when
Most pages are highly interactive and share state, because islands do not share state easily.
You cannot move to a current Node version.
Full-stack tier: Next.js, SvelteKit and TanStack Start
Choose from this tier when your site will have logins, dashboards, payments or rich interactivity. You pay in JavaScript, and in return you get one codebase for pages and application logic.
Next.js: the React default
Next.js has the biggest ecosystem and hiring pool of any framework here, with roughly 140,000 GitHub stars and an estimated 60 to 70 percent usage share in the State of JS 2025 survey. Version 16 made Turbopack the default bundler and added Cache Components, which replace much of the old implicit caching.
The cost is weight. Bitdoze estimates a simple blog page at about 85 to 95 KB gzipped, and DevToolPicks says a static export typically ships several times more JavaScript than the same site in Astro. Both figures are rough, but the direction is consistent.
Starter code
npx create-next-app@latest// app/page.tsx (a server component by default)
export default async function Home() {
const res = await fetch('https://example.com/api/posts');
const posts: { id: number; title: string }[] = await res.json();
return (
<main>
<h1>Hello from Next.js</h1>
<ul>{posts.map((p) => <li key={p.id}>{p.title}</li>)}</ul>
</main>
);
}Pick it when
Your team already writes React and the site will become an application.
You need the largest pool of tutorials, libraries and developers.
Skip it when
The site is purely content and nobody needs React features.
You plan to self-host and rely on image optimisation or incremental regeneration, which behave differently outside Vercel.
SvelteKit: small bundles, friendly syntax
Svelte compiles components at build time instead of shipping a large runtime. SvelteKit adds routing, typed data loading, form actions and adapters for Node, Vercel, Netlify, Cloudflare Workers and static hosting. Svelte 5 and SvelteKit 2 are both stable, and Svelte 5 introduced runes, an explicit reactivity system.
In one open series that rebuilt the same small app in many frameworks, SvelteKit came to about 32.5 KB gzipped. That is one app, not a universal benchmark.
Starter code
npx sv create my-app// src/routes/+page.server.js
export const prerender = true;
export function load() {
return { title: 'Hello from SvelteKit' };
}<!-- src/routes/+page.svelte -->
<script>
let { data } = $props();
let count = $state(0);
</script>
<h1>{data.title}</h1>
<button onclick={() => count++}>Clicked {count}</button>Pick it when
Bundle size and developer happiness both matter and you are free to choose the stack.
You want one framework that can prerender some routes and server-render others.
Skip it when
Hiring speed or a large React investment outweighs everything else.
TanStack Start: type-safe and newly stable
TanStack Start is a full-stack React framework built on TanStack Router. It is client-first with explicit server functions, so you always see where code runs. The TanStack team declared version 1.0 stable on October 13, 2026, and Netlify has reportedly made it the default for new Agent Runners projects.
Starter code (follow the official quick start for the exact install command)
// src/routes/index.tsx
import { createFileRoute } from '@tanstack/react-router';
export const Route = createFileRoute('/')({
loader: async () => {
const res = await fetch('https://example.com/api/posts');
return (await res.json()) as { id: number; title: string }[];
},
component: Home,
});
function Home() {
const posts = Route.useLoaderData();
return (
<main>
<h1>Hello from TanStack Start</h1>
<ul>{posts.map((p) => <li key={p.id}>{p.title}</li>)}</ul>
</main>
);
}Pick it when
You build a React application with complex client state and want compile-time checked routes.
You want to deploy anywhere without tying the framework to one host.
Skip it when
You need the biggest ecosystem or a deep hiring pool today.
The site is mostly static content.
Interaction specialists: Qwik and Fresh
These two chase the same goal as islands, a fast first load with interactivity on demand, but from opposite directions. One is a bold new model. The other is a strict folder convention with an uncertain host.
Qwik: resumability instead of hydration
Qwik's bet is that the browser should do almost nothing until the user acts. It writes listener references into the HTML and uses one tiny global listener to fetch the right code on the first click. Qwik City is its full-stack layer for routing and data.
Starter code
npm create qwik@latest// src/routes/index.tsx
import { component$, useSignal } from '@builder.io/qwik';
export default component$(() => {
const count = useSignal(0);
return (
<>
<h1>Hello from Qwik</h1>
<button onClick$={() => count.value++}>Clicked {count.value}</button>
</>
);
});Pick it when
Pages are genuinely interactive and mobile load time is critical.
Your team is willing to learn the
$boundary rules in exchange for lazy loading.
Skip it when
You depend on many React libraries.
The site is mostly static, where simpler tools win.
Fresh: islands by folder convention
Fresh is the island framework from the Deno project. Anything in routes/ renders on the server only, and only components in islands/ become interactive, so shipping JavaScript by accident is hard. It uses Preact. Fresh 2 added an optional Vite plugin, and Fresh 2.3 in April 2026 shipped true zero-JavaScript pages.
Starter code
deno run -Ar jsr:@fresh/init// routes/index.tsx (server-only)
import Counter from '../islands/Counter.tsx';
export default function Home() {
return (
<main>
<h1>Hello from Fresh</h1>
<Counter start={0} />
</main>
);
}// islands/Counter.tsx (the only part that ships JavaScript)
import { useSignal } from '@preact/signals';
export default function Counter(props: { start: number }) {
const count = useSignal(props.start);
return <button onClick={() => (count.value += 1)}>Clicked {count.value}</button>;
}Pick it when
You already run on Deno and want enforced islands.
You are building a side project or prototype, not a ten-year commitment.
Skip it when
You need long-term runtime support guarantees today.
Your team does not already know Deno or Preact.
Web frameworks compared: what the numbers say (facts, with caveats)
Every source below agrees on the direction: frameworks that ship less JavaScript by default load faster on content pages. They disagree on the size of the gap, and none of them measured your site, so read the figures as context rather than promises.
Measure | Reported result | Source | Caveat |
|---|---|---|---|
Gzipped JavaScript, same small interactive app | Astro about 3.2 KB, Qwik 28.6 KB first paint (44.9 KB total), SvelteKit 32.5 KB, Nuxt 52 KB | One small app, not a benchmark suite | |
Default JavaScript on a simple blog page | Astro 0 KB, Next.js about 85 to 95 KB gzipped | An estimate, so treat it as direction | |
Output size on paired builds | Astro about 1.5 times Eleventy, Next.js static export 8 to 12 times Eleventy | The author's own builds | |
Lighthouse on simple content sites | Astro 100, Next.js about 94 | Bitdoze | The gap narrows as interactivity grows |
Core Web Vitals in controlled studies | Astro had the best First Contentful Paint in 19 of 21 scenarios in a 2025 study. A 2026 study was mixed: Astro led Total Blocking Time, Next.js led Largest Contentful Paint and Speed Index | Results depend on the test scenario | |
Build speed | Astro 6 rebuilds 100 Markdown posts in about 200 ms. Next.js 16 with Turbopack builds 2 to 5 times faster than Webpack | Bitdoze | Different tasks, so not directly comparable |
Developer sentiment | Astro leads satisfaction by 39 points over Next.js, while Next.js leads usage at 60 to 70 percent | Bitdoze, summarising State of JS 2025 | A survey, not a performance test |
The honest takeaway is narrow. For a mostly static page, an islands or static framework has a clear head start. As you add interactive components, that head start shrinks, and the decision shifts to team skills and risk.
How to choose: a decision flowchart
Three questions settle most projects. Start at the top of the chart and follow your answers to the highlighted framework.

The chart skips a few special cases, so check them before you commit.
If your situation is... | Consider | Why |
|---|---|---|
A personal blog or docs site you want to leave alone for years | Eleventy | Few moving parts and rare breaking changes |
A marketing site plus a logged-in product | Astro for the site, Next.js or SvelteKit for the app | Each tool does the job it is best at |
Tens of thousands of pages where build time hurts | Hugo | Widely reported as the fastest static generator, per Gautam Khorana's 2026 roundup |
A team that already runs on Deno | Fresh, with a plan B | Islands are enforced, but the runtime's future is uncertain |
A team that knows React and wants deploy-anywhere freedom | TanStack Start | Stable since October 2026 and not tied to one host |
Team skill matters as much as features. A React team moves fastest with Next.js, TanStack Start or Astro with React islands. A Svelte team should look at SvelteKit first.
Five mistakes that cost teams months
These are patterns the sources above keep warning about, grouped here as analysis.
Choosing by popularity instead of page type. Next.js leads usage, but a content site pays for a React runtime it may never need. Match the tool to what most pages do.
Future-proofing for an app you may never build. DevToolPicks calls this carrying weight today for a tomorrow that may never arrive. Add an app framework when the product needs one, and use two tools if necessary.
Underestimating state sharing between islands. Islands are separate roots, so sharing a cart or a theme means a small store, URL parameters or custom events. If you reach for that often, you have outgrown the model.
Following outdated tutorials. Astro 6 raised the Node requirement and changed APIs, and TanStack Start 1.0 removed release-candidate APIs. Check the version a tutorial targets before you copy its code.
Ignoring hosting costs. Bitdoze reports Vercel bills of roughly $230 to $1,180 a month at 50,000 monthly users, against $10 to $20 for a self-hosted server. Static output on a free tier avoids the question entirely.
The best framework is the one that matches what you are building and what your team already knows. Start from your tightest constraint, whether that is JavaScript weight, team skills, build time or interactivity, and the choice usually becomes clear. Whichever you pick, build a small prototype and measure it before you commit.
Comments
Loading comments…