# SolidStart

SolidStart scores 15 of 28 points on 14 speed features: 8/14 on first-paint levers and 7/14 on other features. Rank 14 of 23, tied with React Router, Void (React), Void (Vue), Void (Solid). Labels: 5 1st-party, 1 Experimental, 4 Third-party, 4 Manual.

- Version checked: Not @solidjs/start: solid-js ^2.0.0-rc.6 (npm latest 2.0.3), @solidjs/router ^2.0.0-next.21, Nitro 3.0.260903-beta (npm latest 3.0.261103-rc) via @solidjs/vite-plugin ^3.0.0-next.39 (npm latest 3.0.1) (optimized branch: ?inline CSS; Fontsource + woff2 preload; custom imageSrcset helper with Nitro host image config; FastLink preload helper; no cache configured)
- Performance guide: [Performance - SolidJS Documentation](https://docs.solidjs.com/guides/performance)
- Issue tracker: https://github.com/solidjs/solid-start/issues
- Books demo port: [solid-books](https://github.com/MaxwellCohen/solid-books)

## Summary

| Feature | Group | Label | Points |
| --- | --- | --- | --- |
| [Production CSS inlining](https://framework-compare.vercel.app/features/css-inlining.md) | First-paint levers | Manual | 0 |
| [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 | 1st-party | 2 |
| [Data/HTML caching](https://framework-compare.vercel.app/features/caching.md) | First-paint levers | Third-party | 1 |
| [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 | Manual | 0 |
| [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: **Manual** (0 of 2 points).

There is no first-party production inlining flag documented in the [styling and assets docs](https://docs.solidjs.com/building-apps/styling-and-assets) (Solid 2 start mode, this port's stack; production output is `<link rel="stylesheet">` tags) or in the archived [SolidStart v2 CSS and styling docs](https://v1.solidjs.com/solid-start/v2/building-your-application/css-and-styling), so you wire it yourself: import the stylesheet with `?inline` (a [Vite CSS feature](https://vite.dev/guide/features#disabling-css-injection-into-the-page)) and render it in a `<style>` tag.

```tsx
import appCss from "./app.css?inline";
// ...
<NoHydration>
  <style>{import.meta.env.SSR ? appCss : ""}</style>
</NoHydration>
```

*From this repo's `solid-books/src/Document.tsx` (`optimized` branch). `NoHydration` keeps the CSS string out of the client bundle.*

### Font optimization

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

Use `@fontsource-variable/geist` plus an explicit `<link rel="preload" as="font">` with the hashed woff2 URL ([static assets](https://v1.solidjs.com/solid-start/v2/building-your-application/static-assets); no first-party font primitive documented — that page covers `/public` and asset imports only).

```tsx
import geistLatin from "@fontsource-variable/geist/files/geist-latin-wght-normal.woff2?url";
// ...
<link rel="preload" as="font" type="font/woff2" href={geistLatin} crossorigin="" />
```

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

### Image pipeline

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

The Solid team publishes [`@solidjs/image`](https://github.com/solidjs/solid-image) (npm `latest` 1.0.0 for Solid 2; 0.x for Solid 1): a `SolidImage` component plus `imagePlugin` from `@solidjs/image/vite`, which resizes and re-encodes local images at build time with sharp, emits `srcset`, lazy-loads, and supports blur/BlurHash/ThumbHash previews. It is not mentioned on docs.solidjs.com (package README only). This port does not use it, or Unpic; it uses a custom `imageSrcset` helper plus the per-host Nitro image config and cover preload components. The Vercel half of that Nitro config looks like this:

```ts
nitro({
  vercel: {
    config: {
      version: 3,
      images: {
        sizes: IMAGE_WIDTHS,
        formats: ["image/avif", "image/webp"],
      },
    },
  },
}),
```

*From this repo's `solid-books/vite.config.ts` (`optimized` branch; `domains`, `remotePatterns`, `minimumCacheTTL` and the Netlify block omitted).*

Art direction with `<picture>` (1st-party, not scored):

`SolidImage` from the Solid team's [`@solidjs/image`](https://github.com/solidjs/solid-image) renders a `<picture>` with one `<source>` per output format (default `webp` + `jpeg`, AVIF available) and a merged `srcset`; that is modern formats and sizes, not breakpoint art direction. The package is documented in its README only, not on docs.solidjs.com. This port does not use it and builds `srcset` with its own `imageSrcset` helper.

`@solidjs/image` covers formats but not breakpoints, so write the `<picture>` in the port's cover component. Wide screens get Goodreads' large cover, and narrow screens keep the medium one.

```tsx
// src/features/book/components/book-cover.tsx
import { getLargeBookImageUrl } from "@/features/book/book-constants";
import { imageSrcset } from "@/lib/image-cdn";
// …
{(src) => (
  <picture>
    <source
      media="(min-width: 768px)"
      srcset={imageSrcset(getLargeBookImageUrl(src())) ?? getLargeBookImageUrl(src())}
      sizes={props.sizes}
    />
    <img
      alt={props.title}
      class="absolute inset-0 h-full w-full object-cover"
      decoding="async"
      width={COVER_WIDTH}
      height={COVER_HEIGHT}
      sizes={props.sizes}
      srcset={imageSrcset(src())}
      src={src()}
    />
  </picture>
)}
```

### Data/HTML caching

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

Nitro, the server layer under Solid's start mode, caches routes and handlers: [`routeRules`](https://nitro.build/docs/cache) with `cache` or `swr`, plus `defineCachedHandler`. Nitro is maintained by the Nitro project (nitrojs), not the Solid team, so this counts as third-party, the same basis as SolidStart's multi-host cell. Solid Router's first-party [`query`](https://docs.solidjs.com/reference/solid-router/data#query) cache dedupes and caches client-side data only. [Route pre-rendering](https://v1.solidjs.com/solid-start/v2/building-your-application/route-prerendering) covers any route listed in `routes` or crawled via `nitro.prerender`. The `optimized` port configures no cache, so its loaders in `src/features/book/book-queries.ts` query Postgres on a cold request. Our feature test sets `routeRules: { "/feature-tests/caching": { cache: { maxAge: 2 } } }` on Nitro 3 beta: the second request inside the TTL returns the same timestamp with `x-cache: HIT`, and a request after the TTL gets a new one.

```ts
routeRules: {
  "/blog/**": { swr: 3600 },
},
```

*Adapted from [the Nitro cache docs](https://nitro.build/docs/cache); the `optimized` port does not set it.*

Gotchas:

- Nitro's Netlify runtime only reads a numeric `isr` value; the object form (needed on Vercel to pass the query string through) does not give the same cache on Netlify.

### Route prefetching

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

Solid Router v1 and the `2.0.0-next.21` prerelease this port pins [preload](https://v1.solidjs.com/solid-router/advanced-concepts/preloading) on hover (~20ms) and focus by default. In Solid Router 2.0 stable (npm `latest` 2.0.1) link preloading is [opt-in](https://docs.solidjs.com/routing/solid-router/data#preloading-from-links): `createRouter({ routes, preloadLinks: intentPreload() })`, with `tapPreload`, `viewportPreload` and `eagerPreload` as other strategies. [`usePreloadRoute`](https://docs.solidjs.com/reference/solid-router/navigation#usepreloadroute) is the manual API, and this port's `FastLink` calls it on hover and focus (and eagerly when its `prefetch` prop is set), and starts the navigation on mouse-down.

```tsx
import { useNavigate, usePreloadRoute } from "@solidjs/router";
```

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

### Streaming SSR

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

With `ssr: true`, pages stream from the server ([choose a rendering mode](https://docs.solidjs.com/guides/choose-a-rendering-mode)): the shell is sent first, then one HTML fragment per `<Loading>` boundary as its data resolves ([performance guide](https://docs.solidjs.com/guides/performance#server-rendering-and-streaming)).

```ts
plugins: [solid({ start: true, ssr: true })],
```

```tsx
<Loading fallback={<p>Loading product…</p>}>
  <article>
    <h1>{product().name}</h1>
  </article>
</Loading>
```

*Adapted from [the Solid docs](https://docs.solidjs.com/guides/choose-a-rendering-mode) (`vite.config.ts` line and a shortened `<Loading>` example).*

### Early Hints / preload headers

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

No first-party preload headers or Early Hints are documented. [`httpHeader`](https://docs.solidjs.com/reference/solid-web/rendering-ssr/http-header) sets a response header during SSR, so you list each asset yourself.

```ts
httpHeader("Link", "</fonts/inter.woff2>; rel=preload; as=font", {
  append: true,
});
```

*From [the Solid `httpHeader` reference](https://docs.solidjs.com/reference/solid-web/rendering-ssr/http-header).*

## Other features

### Islands / partial hydration / lazy slices

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

No first-party islands are documented: released SolidStart v2 reserves `experimental.islands` and only accepts `false` ([config reference](https://v1.solidjs.com/solid-start/v2/reference/config/solid-start)). Solid 2's `@solidjs/web` has experimental server components (a component returned from a `"use server"` function and mounted with `dynamicComponent`; [docs](https://docs.solidjs.com/guides/ai-sdk-chat)), not used by this port. [`clientOnly`](https://docs.solidjs.com/reference/solid-web/rendering-ssr/client-only) skips SSR for a single component, which is not islands.

Example of building it yourself:

Solid 2's experimental server components replace islands. A `"use server"` function returns a component, the client mounts it with `dynamicComponent`, and only the client components passed in as props or children hydrate. Turn it on with `serverFunctions: { components: true }` on `@solidjs/vite-plugin`.

```tsx
// src/routes/story.tsx
import { dynamicComponent } from 'solid-js'

async function getStory(id: number) {
  'use server'
  const story = await db.stories.get(id)
  return (props) => (
    <article>
      <h1>{story.title}</h1>
      <footer>{props.children}</footer>
    </article>
  )
}

export default function StoryPage(props) {
  const Story = dynamicComponent(() => getStory(props.storyId))
  return (
    <Story>
      <ShareBar />
    </Story>
  )
}
```

Source: [Solid: RFC 11, Server components (experimental)](https://github.com/solidjs/solid/blob/main/documentation/solid-2.0/11-server-components.md)

### Per-route render modes

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

[Route prerendering](https://v1.solidjs.com/solid-start/v2/building-your-application/route-prerendering) is set under top-level `nitro: { prerender: { routes, crawlLinks } }` in v2/vite-plugin setups, and Nitro `routeRules` can set `swr`/`cache` per route (see the snippet in [section 4](https://framework-compare.vercel.app/features/caching)); there is no per-route SSR/SPA switch. For the Solid 2 stack, see [deployment](https://docs.solidjs.com/building-apps/deployment) (top-level `nitro` config) and [choose a rendering mode](https://docs.solidjs.com/guides/choose-a-rendering-mode) (`prerender-crawler`).

```ts
export default defineConfig({
  plugins: [solidStart(), nitro()],
  nitro: {
    prerender: {
      routes: ["/", "/about"],
    },
  },
});
```

*From the archived SolidStart v2 [route pre-rendering docs](https://v1.solidjs.com/solid-start/v2/building-your-application/route-prerendering) (uses `@solidjs/start`, not this port's `@solidjs/vite-plugin` setup).*

### Fine-grained client reactivity

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

[Signals](https://docs.solidjs.com/concepts/reactivity); updates write to the DOM directly without re-running components.

```tsx
const [isOpen, setIsOpen] = createSignal(false);
```

*From this repo's `solid-books/src/components/mobile-book-sidebar.tsx` (`optimized` branch).*

### Built-in bundle analysis

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

No first-party analyzer is documented ([archived SolidStart v2 docs](https://v1.solidjs.com/solid-start/v2/building-your-application/static-assets) cover asset handling but no analysis step); [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer) would be added, not configured here.

Example of building it yourself:

Add `rollup-plugin-visualizer` to the port's Vite config. `vite build` then writes a treemap of the bundle to `stats.html`.

```ts
// vite.config.ts
import { nitro } from 'nitro/vite'
import solid from '@solidjs/vite-plugin'
import { visualizer } from 'rollup-plugin-visualizer'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    solid({ start: { /* … */ }, ssr: true }),
    nitro({ /* … */ }),
    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).

No first-party script-loading strategy is documented ([head and metadata](https://docs.solidjs.com/building-apps/head-and-metadata)); `Script` from `@solidjs/meta` only emits a `<script>` tag ([reference](https://docs.solidjs.com/reference/solid-meta/script)). Nothing to enable.

Example of building it yourself:

Write the tags in the port's `Document.tsx`, next to its inline theme script. For a lazy strategy, add an inline loader that injects the third-party script once the page is idle.

```tsx
// src/Document.tsx
const themeScript = `(function(){ /* … from the port … */ })();`;
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 default function Document(props: ParentProps) {
  return (
    <html lang="en">
      <head>
        {/* … meta, font preload, inlined CSS from the port … */}
        <script>{themeScript}</script>
        <script src="https://example.com/critical.js" async />
        <script>{lazyAnalytics}</script>
        <HydrationScript />
      </head>
      <body>{props.children}</body>
    </html>
  );
}
```

### Portable multi-host deployment

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

Use Nitro v3 presets, or the host-maintained `@cloudflare/vite-plugin` / `@netlify/vite-plugin`; all three are documented in the Solid deployment guides ([SolidStart v2 deployment plugins](https://v1.solidjs.com/solid-start/v2/guides/deployment-plugins); [Solid 2 start mode](https://docs.solidjs.com/building-apps/deployment), which also emits its own Node server via `start.nodeServer`). None of them is maintained by the Solid team, so the cell is scored 🧪, as for React Router's host-maintained integrations.

```ts
nitro({
  ...(process.env.CLOUDFLARE || process.env.WORKERS_CI
    ? { preset: "cloudflare_module" }
    : {}),
}),
```

*From this repo's `solid-books/vite.config.ts` (`optimized` branch; host image config omitted).*

Gotchas:

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

### Service worker / offline support

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

No service worker support is documented. Put a hand-written `sw.js` in `public/` ([styling and assets](https://docs.solidjs.com/building-apps/styling-and-assets)) and register it yourself; the worker has no list of built assets unless you generate one.

Example of building it yourself:

Put a hand-written worker in `public/` and register it with an inline script in the document, next to the theme script.

```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/Document.tsx
const swScript = `if('serviceWorker' in navigator)addEventListener('load',function(){navigator.serviceWorker.register('/sw.js')});`;
// …
        <script>{themeScript}</script>
        <script>{swScript}</script>
```

Source: [Using Service Workers (MDN)](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers) · [SolidStart styling and assets](https://docs.solidjs.com/building-apps/styling-and-assets)

## Other performance features

`deferStream`, which holds the stream until a given async value resolves ([performance guide](https://docs.solidjs.com/guides/performance#server-rendering-and-streaming); option listed in the [`createMemo` reference](https://docs.solidjs.com/reference/solid-js/reactivity/create-memo)).

## Deployments of the Books demo

| Branch | Note | Vercel | Netlify | Cloudflare |
| --- | --- | --- | --- | --- |
| `main` | fork from work by brenelz | https://solid-books.vercel.app | https://max-solid-books.netlify.app | https://solid-books.to-email-max.workers.dev |
| `optimized` | cache + fonts | https://solid-books-optimized.vercel.app | https://solid-books-max-optimized.netlify.app | https://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.51 s | 0.92 s | 4.26 s | 48 ms | 0.000 |
| book list (/) | optimized | `optimized` | cloudflare, netlify, vercel | 94 | 0.94 s | 0.99 s | 2.75 s | 60 ms | 0.000 |
| one book (/10145787) | baseline | `main` | cloudflare, netlify, vercel | 97 | 1.51 s | 0.62 s | 2.56 s | 7 ms | 0.000 |
| one book (/10145787) | optimized | `optimized` | cloudflare, netlify, vercel | 100 | 0.93 s | 0.25 s | 1.76 s | 31 ms | 0.001 |

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

---

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