# TanStack Start (Solid)

TanStack Start (Solid) scores 17 of 28 points on 14 speed features: 10/14 on first-paint levers and 7/14 on other features. Rank 8 of 23, tied with TanStack Start (React), Waku, Analog, Void (Svelte). Labels: 5 1st-party, 3 Experimental, 4 Third-party, 2 Manual.

- Version checked: @tanstack/solid-start 2.0.0-rc.8 (rc tag now rc.12 as of 2026-11-24), Vite ^8.0.0 (?inline CSS; hand-written @font-face; own catalog cache)
- Performance guide: [Code Splitting | TanStack Router Docs](https://tanstack.com/router/latest/docs/framework/solid/guide/code-splitting)
- Issue tracker: https://github.com/TanStack/router/issues
- Books demo port: [tanstack-solid-books](https://github.com/MaxwellCohen/tanstack-solid-books)

## Summary

| Feature | Group | Label | Points |
| --- | --- | --- | --- |
| [Production CSS inlining](https://framework-compare.vercel.app/features/css-inlining.md) | First-paint levers | Experimental | 1 |
| [Font optimization](https://framework-compare.vercel.app/features/font-optimization.md) | First-paint levers | Third-party | 1 |
| [Image pipeline](https://framework-compare.vercel.app/features/image-pipeline.md) | First-paint levers | Third-party | 1 |
| [Data/HTML caching](https://framework-compare.vercel.app/features/caching.md) | First-paint levers | 1st-party | 2 |
| [Route prefetching](https://framework-compare.vercel.app/features/route-prefetching.md) | First-paint levers | 1st-party | 2 |
| [Streaming SSR](https://framework-compare.vercel.app/features/streaming-ssr.md) | First-paint levers | 1st-party | 2 |
| [Early Hints / preload headers](https://framework-compare.vercel.app/features/early-hints.md) | First-paint levers | Experimental | 1 |
| [Islands / partial hydration / lazy slices](https://framework-compare.vercel.app/features/islands.md) | Other features | Experimental | 1 |
| [Per-route render modes](https://framework-compare.vercel.app/features/render-modes.md) | Other features | 1st-party | 2 |
| [Fine-grained client reactivity](https://framework-compare.vercel.app/features/reactivity.md) | Other features | 1st-party | 2 |
| [Built-in bundle analysis](https://framework-compare.vercel.app/features/bundle-analysis.md) | Other features | Third-party | 1 |
| [Third-party script strategies](https://framework-compare.vercel.app/features/third-party-scripts.md) | Other features | Manual | 0 |
| [Portable multi-host deployment](https://framework-compare.vercel.app/features/multi-host-deployment.md) | Other features | Third-party | 1 |
| [Service worker / offline support](https://framework-compare.vercel.app/features/service-worker.md) | Other features | Manual | 0 |

## First-paint levers

### Production CSS inlining

Label: **Experimental** (1 of 2 points).

The same [`server.build.inlineCss`](https://tanstack.com/start/latest/docs/framework/solid/guide/css-styling) flag exists. This port does not use it; `src/routes/__root.tsx` imports `app.css?inline` and passes it through `head()`.

```tsx
import appCss from "../app.css?inline";
// ...
head: () => ({
  styles: [{ children: appCss }],
}),
```

*From this repo's `tanstack-solid-books/src/routes/__root.tsx` (`optimized` branch).*

Our feature test turned the flag on in the 2.0.0-rc.8 port. The page got an inline `<style>` with the route's CSS, but the hashed route stylesheet (`/assets/css-inlining-*.css`) was still linked as a render-blocking `<link rel="stylesheet">`. The guide says the flag replaces manifest-managed stylesheet links with one inline `<style>` tag, so on this release line the flag only half works. The label stays 🧪 because the flag is documented as experimental.

### Font optimization

Label: **Third-party** (1 of 2 points).

Hand-write `@font-face` rules over the Fontsource woff2 files in `src/app.css`, plus an explicit woff2 preload in `__root.tsx`. No first-party font module is documented (same [production checklist](https://tanstack.com/start/latest/docs/framework/react/guide/production-checklist)).

```css
@font-face {
  font-family: "Geist Variable";
  font-display: optional;
  font-weight: 100 900;
  src: url("@fontsource-variable/geist/files/geist-latin-wght-normal.woff2") format("woff2");
}
```

```tsx
links: [
  { rel: "preload", as: "font", type: "font/woff2", href: geistLatin, crossOrigin: "anonymous" },
],
```

*From this repo's `tanstack-solid-books/src/app.css` and `src/routes/__root.tsx` (`optimized` branch; `font-style` and `unicode-range` omitted).*

### Image pipeline

Label: **Third-party** (1 of 2 points).

[Unpic](https://unpic.pics) (`@unpic/solid`) with the same IPX/Nitro or host-CDN setup; no first-party image pipeline is documented (same [checklist](https://tanstack.com/start/latest/docs/framework/react/guide/production-checklist)).

```tsx
import { Image as UnpicImage } from "@unpic/solid";
```

*From this repo's `tanstack-solid-books/src/components/ui/image.tsx` (`optimized` branch).*

Art direction with `<picture>` (Manual, not scored):

Same as React ([checklist](https://tanstack.com/start/latest/docs/framework/react/guide/production-checklist)), with `@unpic/solid`.

Write the same `<picture>` as the React port, with `Source` from `@unpic/solid` around the port's `<Image>` wrapper. Solid uses `class` instead of `className`.

```tsx
// src/features/book/components/book-cover.tsx
import { Source } from "@unpic/solid";
import { Image } from "@/components/ui/image";
import { imageCdn } from "@/lib/image-config";
// …
const small = () => props.src ?? EMPTY_IMAGE_URL;
const size = { layout: "constrained", width: COVER_IMAGE_WIDTH, height: COVER_IMAGE_HEIGHT } as const;

return (
  <picture>
    <Source
      {...size}
      media="(min-width: 768px)"
      src={getLargeBookImageUrl(small())}
      cdn={imageCdn}
      options={imageCdn === "ipx" ? { ipx: { baseURL: "/_ipx" } } : undefined}
    />
    <Image {...size} alt={props.title} src={small()} sizes={props.sizes} priority={props.priority}
           class="absolute inset-0 size-full object-cover" objectFit="cover" unstyled />
  </picture>
);
```

### Data/HTML caching

Label: **1st-party** (2 of 2 points).

[Static prerendering](https://tanstack.com/start/latest/docs/framework/solid/guide/static-prerendering) and route `headers` work the same way as in React (same snippet), but there is no Solid ISR guide. This port uses its own catalog cache plus `Cache-Control` headers.

Our feature test of the router loader cache (`staleTime`) passes on 2.0.0-rc.8: the loader made no server-function request inside `staleTime`, refetched once after it expired, and the new value reached the page. The label rests on prerendering and route headers; the loader cache is a bonus.

Example of building it yourself:

Give a route a `headers` function to set `Cache-Control` on its document response. Add `prerender` to `tanstackStart()` for pages that should be built ahead of time.

```tsx
// src/routes/$id.tsx
import { createFileRoute } from '@tanstack/solid-router'

export const Route = createFileRoute('/$id')({
  loader: ({ params }) => getBook(params.id),
  headers: () => ({
    // Cache at CDN for 1 hour, allow stale content for up to 1 day
    'Cache-Control':
      'public, max-age=3600, s-maxage=3600, stale-while-revalidate=86400',
  }),
  // …
})
```

Source: [TanStack Start: Incremental Static Regeneration (ISR)](https://tanstack.com/start/latest/docs/framework/react/guide/isr)

Gotchas:

- TanStack's ISR is a headers pattern, not a framework cache: `s-maxage` plus `stale-while-revalidate` only helps if your CDN honors them.

### Route prefetching

Label: **1st-party** (2 of 2 points).

The same router [preloading](https://tanstack.com/router/latest/docs/framework/solid/guide/preloading) applies. This port sets `defaultPreload: 'intent'` in `tanstack-solid-books/src/router.tsx` (`optimized` branch) with `@tanstack/solid-router`, but it does not use the router's `<Link>`: its `FastLink` (`src/components/ui/fast-link.tsx`) is a plain `<a>` that calls `router.preloadRoute()` on hover and focus (and on render when `prefetch` is set), so preloading is wired by hand through the manual API rather than by the `defaultPreload` setting.

Example of building it yourself:

`defaultPreload: 'intent'` makes every router `<Link>` preload its route on hover or focus. The port's `FastLink` is a plain `<a>`, so it calls `router.preloadRoute()` itself on the same events.

```tsx
// src/router.tsx
const router = createTanStackRouter({
  routeTree,
  defaultPreload: 'intent',
  defaultPreloadStaleTime: 0,
})
```

```tsx
// src/components/ui/fast-link.tsx
const router = useRouter()

function warm() {
  const url = new URL(props.href, 'http://tanstack-solid-books.local')
  const id = url.pathname === '/' ? undefined : url.pathname.slice(1)
  const search = Object.fromEntries(url.searchParams)
  void router
    .preloadRoute(id ? { to: '/$id', params: { id }, search } : { to: '/', search })
    .catch(() => {})
}

return <a href={props.href} onFocus={warm} onMouseEnter={warm}>{props.children}</a>
```

Source: [TanStack Router: Preloading](https://tanstack.com/router/latest/docs/framework/solid/guide/preloading)

Gotchas:

- Preloading is off until you set `defaultPreload`.

### Streaming SSR

Label: **1st-party** (2 of 2 points).

The same setup applies: `defaultStreamHandler` from `@tanstack/solid-start/server` ([server entry point](https://tanstack.com/start/latest/docs/framework/solid/guide/server-entry-point)) and unawaited loader promises rendered with `<Await>` ([deferred data loading](https://tanstack.com/router/latest/docs/framework/solid/guide/deferred-data-loading)).

Example of building it yourself:

The server entry renders with `defaultStreamHandler`. A loader returns a slow promise without awaiting it, and `<Await>` shows its fallback until the promise resolves and the rest of the HTML streams in.

```tsx
// src/server.ts
import { createStartHandler, defaultStreamHandler } from '@tanstack/solid-start/server'
import { createServerEntry } from '@tanstack/solid-start/server-entry'

const processRequest = createStartHandler(defaultStreamHandler)
export default createServerEntry({ fetch: (request, opts) => processRequest(request, opts) })
```

```tsx
// src/routes/$id.tsx
import { createFileRoute, Await } from '@tanstack/solid-router'

export const Route = createFileRoute('/$id')({
  loader: async ({ params }) => ({
    book: await getBook(params.id),       // awaited: in the first chunk
    reviews: getReviews(params.id),       // not awaited: streamed later
  }),
  component: BookPage,
})

function BookPage() {
  const data = Route.useLoaderData()
  return (
    <>
      <h1>{data().book.title}</h1>
      <Await promise={data().reviews} fallback={<p>Loading reviews…</p>}>
        {(reviews) => <ul>{reviews.map((r) => <li>{r.text}</li>)}</ul>}
      </Await>
    </>
  )
}
```

Source: [TanStack Start: Server Entry Point](https://tanstack.com/start/latest/docs/framework/solid/guide/server-entry-point) · [TanStack Router: Deferred Data Loading](https://tanstack.com/router/latest/docs/framework/solid/guide/deferred-data-loading)

### Early Hints / preload headers

Label: **Experimental** (1 of 2 points).

The same experimental [`onEarlyHints`](https://tanstack.com/start/latest/docs/framework/solid/guide/early-hints) hook and `responseLinkHeader` option, imported from `@tanstack/solid-start/server-entry`.

Example of building it yourself:

Pass `onEarlyHints` to `handler.fetch()` in the server entry. It receives the manifest's preload links, which you send with the runtime's 103 API. `responseLinkHeader: true` puts them in a `Link` header instead.

```tsx
// src/server.ts
import handler from '@tanstack/solid-start/server-entry'
import type { ServerRequest } from 'srvx'

export default {
  fetch(request: Request) {
    const serverRequest = request as ServerRequest
    return handler.fetch(request, {
      onEarlyHints: ({ phase, allLinks }) => {
        if (phase !== 'dynamic') return
        const response = serverRequest.runtime?.node?.res
        if (response?.writeEarlyHints && allLinks.length) {
          response.writeEarlyHints({ link: allLinks })
        }
      },
    })
  },
}
```

Source: [TanStack Start: Early Hints](https://tanstack.com/start/latest/docs/framework/solid/guide/early-hints)

## Other features

### Islands / partial hydration / lazy slices

Label: **Experimental** (1 of 2 points).

The same `<Hydrate>` from `@tanstack/solid-start` ([guide](https://tanstack.com/start/latest/docs/framework/solid/guide/deferred-hydration)); the usage mirrors the React snippet. That guide's prose is still copied from the React page, so its runtime behaviour is less proven. TanStack Start documents no Server Components for Solid. This port does not use `<Hydrate>`.

```tsx
import { Hydrate } from '@tanstack/solid-start'
import { visible } from '@tanstack/solid-start/hydration'

<Hydrate when={visible({ rootMargin: '400px' })}>
  <Reviews />
</Hydrate>
```

*From [the Solid deferred hydration guide](https://tanstack.com/start/latest/docs/framework/solid/guide/deferred-hydration) (component wrapper omitted; the page's prose still refers to React).*

Gotchas:

- `<Hydrate>` is a newer API: check the linked guide for current behavior.

### Per-route render modes

Label: **1st-party** (2 of 2 points).

The same per-route [`ssr: true | false | 'data-only'`](https://tanstack.com/start/latest/docs/framework/solid/guide/selective-ssr), `defaultSsr`, and global SPA mode; the options match the React snippet.

```tsx
import { createStart } from '@tanstack/solid-start'

export const startInstance = createStart(() => ({
  defaultSsr: false,
}))
```

*From [the Solid selective SSR guide](https://tanstack.com/start/latest/docs/framework/solid/guide/selective-ssr); the per-route `ssr: false` example is the same as the React one.*

Gotchas:

- `ssr: false` still runs on the client only; `'data-only'` is the middle option.

### Fine-grained client reactivity

Label: **1st-party** (2 of 2 points).

[Signals](https://docs.solidjs.com/concepts/reactivity); updates write to the DOM directly (the same `createSignal` shown for SolidStart).

Example of building it yourself:

`createSignal` returns a getter and a setter. Reading `quantity()` in JSX subscribes that text node, so a click updates only that node. The component function does not run again.

```tsx
import { createSignal } from 'solid-js'

export function LineItem() {
  const [quantity, setQuantity] = createSignal(1)
  const price = 12

  return (
    <div>
      <button type="button" onClick={() => setQuantity(quantity() - 1)}>−</button>
      <span>{quantity()}</span>
      <button type="button" onClick={() => setQuantity(quantity() + 1)}>+</button>
      <p>Subtotal: ${quantity() * price}</p>
    </div>
  )
}
```

Source: [Solid: Reactivity](https://docs.solidjs.com/concepts/reactivity)

### Built-in bundle analysis

Label: **Third-party** (1 of 2 points).

Same ([Solid hosting guide](https://tanstack.com/start/latest/docs/framework/solid/guide/hosting) documents no analyzer): [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer), not configured.

Example of building it yourself:

Add `rollup-plugin-visualizer` to the plugin list. `vite build` then writes a treemap of the bundle to `stats.html`.

```ts
// vite.config.ts
import { defineConfig } from 'vite'
import { tanstackStart } from '@tanstack/solid-start/plugin/vite'
import viteSolid from '@solidjs/vite-plugin'
import { visualizer } from 'rollup-plugin-visualizer'

export default defineConfig({
  plugins: [
    tanstackStart(),
    viteSolid({ ssr: true }),
    visualizer({ filename: 'stats.html', gzipSize: true }),
  ],
})
```

Source: [rollup-plugin-visualizer: README](https://github.com/btd/rollup-plugin-visualizer)

### Third-party script strategies

Label: **Manual** (0 of 2 points).

Same as React ([Solid hosting guide](https://tanstack.com/start/latest/docs/framework/solid/guide/hosting) lists no script API); the same `scripts: [{ children: themeScript }]` field is used in `tanstack-solid-books/src/routes/__root.tsx`.

Example of building it yourself:

Use the root route's `head().scripts`, which the port already uses for its theme script. Since there is no loading-strategy option, add a small inline loader that injects the third-party tag once the page has loaded.

```tsx
// src/routes/__root.tsx
const lazyAnalytics = `addEventListener("load",function(){(window.requestIdleCallback||setTimeout)(function(){var s=document.createElement("script");s.src="https://example-analytics.com/script.js";s.async=true;document.head.appendChild(s);});});`;

export const Route = createRootRoute({
  head: () => ({
    // … meta, links, styles from the port …
    scripts: [
      { children: themeScript },                              // from the port
      { src: "https://example.com/critical.js", async: true }, // load as soon as possible
      { children: lazyAnalytics },                             // like Next's lazyOnload
    ],
  }),
  // …
});
```

### Portable multi-host deployment

Label: **Third-party** (1 of 2 points).

The same options, Nitro plus host-maintained plugins ([hosting](https://tanstack.com/start/latest/docs/framework/solid/guide/hosting)), scored 🧪 as for the React variant; this port implements all three branches with the same Cloudflare / Netlify / Nitro structure in `tanstack-solid-books/vite.config.ts` (`optimized` branch).

Example of building it yourself:

The port picks one host plugin at build time: `@cloudflare/vite-plugin` on Cloudflare, `@netlify/vite-plugin-tanstack-start` on Netlify, and Nitro everywhere else (Vercel included).

```ts
// vite.config.ts
import { defineConfig, type PluginOption } from 'vite'
import { tanstackStart } from '@tanstack/solid-start/plugin/vite'
import viteSolid from '@solidjs/vite-plugin'
import { nitro } from 'nitro/vite'

const isCloudflare = Boolean(process.env.CLOUDFLARE || process.env.WORKERS_CI || process.env.CF_PAGES)
const isNetlify = Boolean(process.env.NETLIFY)

export default defineConfig(async () => {
  const plugins: PluginOption[] = []
  if (isCloudflare) {
    const { cloudflare } = await import('@cloudflare/vite-plugin')
    plugins.push(cloudflare({ viteEnvironment: { name: 'ssr' } }))
  } else if (isNetlify) {
    const netlify = (await import('@netlify/vite-plugin-tanstack-start')).default
    plugins.push(netlify())
  } else {
    plugins.push(nitro())
  }
  plugins.push(tanstackStart(), viteSolid({ ssr: true }))
  return { plugins }
})
```

Source: [TanStack Start: Hosting](https://tanstack.com/start/latest/docs/framework/solid/guide/hosting)

Gotchas:

- The Cloudflare and Netlify Vite plugins are maintained by the hosts.

### Service worker / offline support

Label: **Manual** (0 of 2 points).

The same: nothing in the [Solid variant's docs](https://tanstack.com/start/latest/docs/framework/solid/overview).

Example of building it yourself:

Put a hand-written worker in `public/` and register it with an inline script from the root route's `head`.

```js
// public/sw.js
const CACHE = 'books-v1'; // change the name on each deploy

self.addEventListener('activate', (event) => {
  event.waitUntil(
    caches.keys().then((keys) => Promise.all(keys.filter((k) => k !== CACHE).map((k) => caches.delete(k)))),
  );
});

self.addEventListener('fetch', (event) => {
  const { request } = event;
  if (request.method !== 'GET' || new URL(request.url).origin !== location.origin) return;
  // Network first, so pages stay current. The cached copy answers when offline.
  event.respondWith(
    fetch(request)
      .then((response) => {
        const copy = response.clone();
        caches.open(CACHE).then((cache) => cache.put(request, copy));
        return response;
      })
      .catch(() => caches.match(request)),
  );
});
```

```tsx
// src/routes/__root.tsx
const swScript = `if('serviceWorker' in navigator)addEventListener('load',function(){navigator.serviceWorker.register('/sw.js')});`;
// …
    scripts: [{ children: themeScript }, { children: swScript }],
```

Source: [Using Service Workers (MDN)](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers) · [TanStack Start document head](https://tanstack.com/router/latest/docs/framework/solid/guide/document-head-management)

## Other performance features

experimental [`transformAssets`](https://tanstack.com/start/latest/docs/framework/react/guide/cdn-asset-urls) for CDN asset URLs.

## Deployments of the Books demo

| Branch | Note | Vercel | Netlify | Cloudflare |
| --- | --- | --- | --- | --- |
| `main` | vibe port | https://tanstack-solid-books.vercel.app | https://tanstack-solid-books.netlify.app | https://tanstack-solid-books.to-email-max.workers.dev |
| `optimized` | cache + fonts | https://tanstack-solid-books-optimized.vercel.app | https://tanstack-solid-books-optimized.netlify.app | https://tanstack-solid-books-optimized.to-email-max.workers.dev |

## Benchmark, 2026-11-28

Tool: PageSpeed Insights v5 (Lighthouse lab run), mobile strategy. 3 measured runs per deployment, median reported; cold runs are left out of the median when a warm run exists. Each build's figure is the average of its hosts' medians (vercel, netlify, cloudflare). Pages measured: book list (/) and one book (/10145787). Times are lab values from one run on 2026-11-28. FCP is the Lighthouse estimate for simulated Slow 4G; Raw FCP, where shown, is the first paint in the real, unthrottled load that estimate is built from. Builds in the same FCP band (https://framework-compare.vercel.app/measured.md) are a tie, so read "fastest first" as band order.

| Page | Build | Branch | Hosts | Performance | FCP | Raw FCP | LCP | TBT | CLS |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| book list (/) | baseline | `main` | cloudflare, netlify, vercel | 84 | 1.52 s | 1.29 s | 4.36 s | 29 ms | 0.000 |
| book list (/) | optimized | `optimized` | cloudflare, netlify, vercel | 96 | 0.93 s | 0.95 s | 2.60 s | 32 ms | 0.000 |
| one book (/10145787) | baseline | `main` | cloudflare, netlify, vercel | 97 | 1.52 s | 0.23 s | 2.58 s | 3 ms | 0.000 |
| one book (/10145787) | optimized | `optimized` | cloudflare, netlify, vercel | 99 | 0.93 s | 0.59 s | 2.05 s | 0 ms | 0.000 |

Full run: https://framework-compare.vercel.app/benchmark.md

---

HTML version: https://framework-compare.vercel.app/frameworks/tanstack-start-solid · All pages: https://framework-compare.vercel.app/llms.txt · Data: https://framework-compare.vercel.app/api/index.json
