Skip to content

TanStack Start (React)

TanStack Start (React) scores 17 of 28 points. That is 10 of 14 on the 7 features that affect first paint (the moment the browser first draws content), and 7 of 14 on the 7 other features.

Tied for rank 8 of 23 with TanStack Start (Solid), Waku, Analog, Void (Svelte)17/28 points: 10/14 first-paint, 7/14 other · 61% complete
Version checked
@tanstack/react-start 1.169.1 (pinned; latest 1.169.7 as of 2026-11-24), Vite ^8.0.0
Version notes
?inline CSS; Unpic; own catalog cache
Performance guide
Code Splitting | TanStack Router DocsNo dedicated performance page; closest official page (TanStack Start is built on TanStack Router).
Issues
github.com/TanStack/router/issues

Scorecard

All 14 features, in two groups. Each row shows TanStack Start (React)'s label, how that label compares across all 23 frameworks, and how to enable the feature. Feature names link to TanStack Start (React)'s entry on that feature's page.

TanStack Start (React)'s labels across 14 features

  • 1st-party5
  • Experimental3
  • Third-party4
  • Manual2
  • of 14

How it compares

On 5 of 14 features, no framework has a higher-scoring label than TanStack Start (React). On the other 9, at least one does.

Tested in our port

The tanstack-books port passes 11/11 feature tests. Run on 2026-11-26 at MaxwellCohen/tanstack-books@aea03aa. How we test labels

First-paint levers

10/14
  • Experimental, like 2 of the other 22 frameworks. 8 frameworks score higher.

    Show the how-to

    server.build.inlineCss (experimental) inlines manifest CSS. This port does not use it; it imports the CSS with ?inline and passes it through head().

    import appCss from '../styles.css?inline'
    // ...
    export const Route = createRootRoute({
      head: () => ({
        styles: [{ children: appCss }],
      }),
    })

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

  • 02Font optimizationThird-party1 pt

    Third-party, like 18 of the other 22 frameworks. 4 frameworks score higher.

    Show the how-to

    Import @fontsource in your global CSS; there is no preload, so the font is discovered from the inlined CSS. No first-party font module is documented; the production checklist only says to check font loading.

    @import '@fontsource-variable/geist';

    From this repo's tanstack-books/src/styles/global.css (optimized branch).

  • 03Image pipelineThird-party1 pt

    Third-party, like 13 of the other 22 frameworks. 9 frameworks score higher.

    Show the how-to

    Use Unpic (@unpic/react) URL transforms plus IPX/Nitro or the host CDN, chosen in vite.config.ts. No first-party image pipeline is documented (production checklist only says to check large images and dimensions).

    import { Image as UnpicImage } from '@unpic/react'
    // ...
    <UnpicImage {...props} cdn={imageCdn} options={options} />

    From this repo's tanstack-books/src/components/ui/image.tsx (optimized branch; options handling simplified).

    Art direction with <picture>

    Manual

    Serving a different crop or format per screen size. Not scored: the label shows how much the framework does for you.

    Nothing to enable: no first-party <picture> component is documented (production checklist). Third-party @unpic/react exports a <Source> component (media, type) for use inside a hand-written <picture>; this port does not use it, and because the <picture> is still hand-written the cell stays 🔧, as for Next's getImageProps().

    Example

    Wrap the port's Unpic <Image> in a hand-written <picture>, and add <Source> from @unpic/react for each art-directed variant. Pass <Source> the same CDN settings the port's Image wrapper uses.

    // src/features/book/components/book-cover.tsx
    import { Source } from '@unpic/react'
    import { Image } from '@/components/ui/image'
    import { imageCdn } from '@/lib/image-config'
    // …
    const small = 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={title} src={small} sizes={sizes} priority={priority}
               className="absolute inset-0 size-full object-cover" objectFit="cover" unstyled />
      </picture>
    )
  • 04Data/HTML caching1st-party2 pts

    1st-party, like 16 of the other 22 frameworks. None scores higher.

    Show the how-to

    Use static prerendering plus per-route Cache-Control / stale-while-revalidate headers, which the ISR guide describes; the CDN does the revalidating, so there is no framework data cache.

    export const Route = createFileRoute('/posts/$id')({
      headers: () => ({
        'Cache-Control': 'public, s-maxage=3600, stale-while-revalidate=86400',
      }),
    })

    From the ISR guide (its Vercel example; the guide's generic example also sets max-age=3600). This port uses src/lib/catalog-cache.ts plus a request middleware that sets document Cache-Control headers in src/start.ts:

    const result = await next()
    const headers = new Headers(result.response.headers)
    headers.set('Cache-Control', hostDocumentCacheControl())

    From this repo's tanstack-books/src/start.ts (optimized branch; abridged).

  • 05Route prefetching1st-party2 pts

    1st-party, like 18 of the other 22 frameworks. None scores higher.

    Show the how-to

    Router preloading is off by default; defaultPreload: 'intent' | 'viewport' | 'render' turns it on. This port sets 'intent' and wraps links with FastLink.

    const router = createTanStackRouter({
      routeTree,
      defaultPreload: 'intent',
    })

    From this repo's tanstack-books/src/router.tsx (optimized branch; other options omitted).

  • 06Streaming SSR1st-party2 pts

    1st-party, like 17 of the other 22 frameworks. None scores higher.

    Show the how-to

    The default server entry uses defaultStreamHandler (server entry point), so streaming SSR is on without a flag. Return a promise from a loader without awaiting it and render it with <Await>.

    export const Route = createFileRoute('/posts/$postId')({
      loader: async () => {
        const slowDataPromise = fetchSlowData()
        const fastData = await fetchFastData()
        return { fastData, deferredSlowData: slowDataPromise }
      },
    })
    // ...
    <Await promise={deferredSlowData} fallback={<div>Loading...</div>}>
      {(data) => <div>{data}</div>}
    </Await>

    Adapted from the TanStack Router deferred data loading guide (comments omitted).

  • Experimental, like 2 of the other 22 frameworks. 4 frameworks score higher.

    Show the how-to

    Early Hints are marked experimental. Start collects route assets and route head().links and calls onEarlyHints in your server entry; your code sends the 103 with the runtime's own API, because "Start does not send Early Hints automatically". responseLinkHeader puts the same links in a Link header for a CDN to convert.

    // src/server.ts
    import handler, { createServerEntry } from '@tanstack/react-start/server-entry'
    
    export default createServerEntry({
      fetch(request) {
        return handler.fetch(request, {
          onEarlyHints: ({ phase, links }) => {
            if (phase !== 'static' || !links.length) return
    
            // Send `links` with your runtime-specific 103 API.
          },
        })
      },
    })

    From the TanStack Start Early Hints guide.

Other features

7/14
  • Experimental, like 4 of the other 22 frameworks. 15 frameworks score higher.

    Show the how-to

    <Hydrate when={visible()}> keeps the server HTML, splits the child into its own chunk, and defers hydration (load, idle, visible, media, interaction, condition, never).

    import { Hydrate } from '@tanstack/react-start'
    import { visible } from '@tanstack/react-start/hydration'
    
    <Hydrate when={visible()}>
      <Reviews />
    </Hydrate>

    From the deferred hydration guide. <ClientOnly> is different: it skips SSR rather than deferring hydration. Experimental Server Components are also available via rsc: { enabled: true } and @vitejs/plugin-rsc. This port uses neither.

  • 1st-party, like 18 of the other 22 frameworks. None scores higher.

    Show the how-to

    Per-route ssr: true | false | 'data-only' with a defaultSsr, plus a global SPA mode. Prerendering is configured in the plugin, and ISR is a headers pattern rather than a render mode.

    export const startInstance = createStart(() => ({
      defaultSsr: false,
    }))
    export const Route = createFileRoute('/posts/$postId')({
      ssr: false,
      component: () => <div>This component is rendered on the client</div>,
    })

    From the selective SSR guide. The guide says 'data-only' keeps beforeLoad and loader on the server while skipping server rendering of the component.

  • 1st-party, like 21 of the other 22 frameworks. None scores higher.

    Show the how-to

    React; the first-party React Compiler is added as a Babel preset to the React Vite plugin. It is not enabled in this port (vite.config.ts calls viteReact() with no compiler preset).

    Code example

    Add the React Compiler preset through @rolldown/plugin-babel next to viteReact(). The compiler memoizes components and hooks at build time, so fewer components re-render when state changes.

    // vite.config.ts
    import { defineConfig } from 'vite'
    import { tanstackStart } from '@tanstack/react-start/plugin/vite'
    import viteReact, { reactCompilerPreset } from '@vitejs/plugin-react'
    import babel from '@rolldown/plugin-babel'
    
    export default defineConfig({
      plugins: [
        tanstackStart(),
        viteReact(),
        babel({ presets: [reactCompilerPreset()] }),
      ],
    })

    Source: React: React Compiler installation

  • Third-party, like 18 of the other 22 frameworks. 2 frameworks score higher.

    Show the how-to

    No first-party analyzer is documented (production checklist); use rollup-plugin-visualizer, not configured.

    Code example

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

    // vite.config.ts
    import { defineConfig } from 'vite'
    import { tanstackStart } from '@tanstack/react-start/plugin/vite'
    import viteReact from '@vitejs/plugin-react'
    import { visualizer } from 'rollup-plugin-visualizer'
    
    export default defineConfig({
      plugins: [
        tanstackStart(),
        viteReact(),
        visualizer({ filename: 'stats.html', gzipSize: true }),
      ],
    })

    Source: rollup-plugin-visualizer: README

  • Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.

    Show the how-to

    Route head().scripts, <Scripts/>, and ScriptOnce emit or run tags but have no loading-strategy API (production checklist only says to review third-party scripts). You wire the tag by hand:

    head: () => ({
      scripts: [{ children: themeScript }],
    }),

    From this repo's tanstack-books/src/routes/__root.tsx (optimized branch; here an inline theme script, but the same field emits any script tag).

  • Third-party, like 5 of the other 22 frameworks. 8 frameworks score higher.

    Show the how-to

    Nitro presets (a separate project, nitrojs/nitro) plus the host-maintained Cloudflare (@cloudflare/vite-plugin) and Netlify (@netlify/vite-plugin-tanstack-start) Vite plugins, which the TanStack hosting guide documents as its official setups; none of the three is published by TanStack. This port implements all three branches; it scores 🧪 by the same rule as React Router and Next.

    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())
    }

    From this repo's tanstack-books/vite.config.ts (optimized branch; Nitro rollupConfig option omitted).

  • Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.

    Show the how-to

    No service worker or offline guide exists in the TanStack Start docs. Hand-write the worker and register it from the root route.

    Code example

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

    // 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)),
      );
    });
    // 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) · TanStack Start document head

1st-party scores 2 points, Experimental and Third-party 1, Manual 0. How scoring works

The port

The books demo app built with this framework, and where each branch is deployed.

Latest benchmark

Mobile Lighthouse lab results from PageSpeed Insights on : the median of 3 runs per host, averaged across the hosts listed. The benchmark page explains each metric and has every other framework.

TanStack Start (React): latest benchmark per build and page
BuildPathPerfFCPRaw FCPLCPTBTCLSSITTIDocHosts
Book list /
baseline/82(good)1.521.00(poor)4.66(good)4(good)0.0002.234.661443/3 Vercel, Netlify, Cloudflare
optimized/94(good)0.930.26(needs improvement)2.75(good)6(good)0.0011.213.251173/3 Vercel, Netlify, Cloudflare
Book page /10145787
baseline/1014578794(good)1.511.02(needs improvement)2.89(good)2(good)0.0002.172.951543/3 Vercel, Netlify, Cloudflare
optimized/1014578799(good)0.930.26(good)1.86(good)0(good)0.0011.112.171243/3 Vercel, Netlify, Cloudflare
  • Good
  • Needs improvement
  • Poor

FCP 1.8 s / 3 s · LCP 2.5 s / 4 s · TBT 200 ms / 600 ms · CLS 0.1 / 0.25

Per host

The medians above before averaging. Runs is how many measured runs went into each median. Host names link to the deployment.

TanStack Start (React): latest benchmark per build, page and host
BuildPathHostPerfFCPRaw FCPLCPTBTCLSSITTIDocRunsStatus
TanStack Start (React)
baseline/Vercel82(good)1.511.33(poor)4.66(good)0(good)0.0002.484.661073/3OK
baseline/Netlify82(good)1.511.38(poor)4.66(good)13(good)0.0002.664.662093/3OK
baseline/Cloudflare83(good)1.540.28(poor)4.66(good)0(good)0.0001.544.661163/3OK
baseline/10145787Vercel93(good)1.511.33(needs improvement)3.02(good)1(good)0.0002.473.021533/3OK
baseline/10145787Netlify94(good)1.511.34(needs improvement)3.03(good)0(good)0.0002.493.031583/3OK
baseline/10145787Cloudflare96(good)1.510.39(needs improvement)2.62(good)5(good)0.0001.542.791523/3OK
optimized/Vercel99(good)0.930.22(good)1.95(good)0(good)0.0000.932.73973/3OK
optimized/Netlify97(good)0.940.31(needs improvement)2.55(good)17(good)0.0031.643.271453/3OK
optimized/Cloudflare87(good)0.930.25(needs improvement)3.75(good)0(good)0.0001.073.751083/3OK
optimized/10145787Vercel100(good)0.920.21(good)1.05(good)0(good)0.0000.921.971063/3OK
optimized/10145787Netlify98(good)0.930.31(good)2.42(good)0(good)0.0031.502.421423/3OK
optimized/10145787Cloudflare99(good)0.920.25(good)2.12(good)0(good)0.0000.922.121253/3OK