Skip to content

Vike

Vike scores 16 of 28 points. That is 10 of 14 on the 7 features that affect first paint (the moment the browser first draws content), and 6 of 14 on the 7 other features.

Rank 13 of 2316/28 points: 10/14 first-paint, 6/14 other · 57% complete
Version checked
vike 0.4.270 with vike-react 0.6.32, vike-vue 0.9.16 and vike-solid 0.8.8 (npm latest on 2026-11-25)
Version notes
Vike is pre-1.0. The labels assume one of the three UI extensions is installed. The Books port (vike-books) uses vike-react.
Performance guide
Preloading | VikeNo dedicated performance page; closest official page.
Issues
github.com/vikejs/vike/issues

Scorecard

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

Vike's labels across 14 features

  • 1st-party6
  • Experimental0
  • Third-party4
  • Manual4
  • of 14

How it compares

On 6 of 14 features, no framework has a higher-scoring label than Vike. On the other 8, at least one does.

First-paint levers

10/14
  • Manual, like 11 of the other 22 frameworks. 11 frameworks score higher.

    Show the how-to

    No first-party CSS inlining documented; Vike injects <link rel="stylesheet"> tags for a page's CSS. injectFilter() only moves or drops injected tags. Inline by hand, for example with a Vite ?inline import. (preloading)

    Code example

    Import the critical stylesheet with Vite's ?inline query and print it in a <style> tag from +Head. Vike does not inject a <link> for a CSS file imported this way.

    // pages/+Head.tsx
    import criticalCss from './critical.css?inline'
    
    export function Head() {
      return <style dangerouslySetInnerHTML={{ __html: criticalCss }} />
    }

    Source: Vite: Disabling CSS injection into the page · Vike: Preloading

  • 02Font optimizationThird-party1 pt

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

    Show the how-to

    No first-party font module documented. Vike injects <link rel="preload" as="font"> for font files a page imports, but it does not download, subset or self-host fonts; the third-party route is Fontsource. (preloading)

    Code example

    Install a Fontsource package and import it from +Layout. The font files are then local build assets, and Vike adds a <link rel="preload" as="font"> for them.

    // pages/+Layout.tsx
    import '@fontsource-variable/inter'
    import './Layout.css' // body { font-family: "Inter Variable", sans-serif; }
    
    export function Layout({ children }: { children: React.ReactNode }) {
      return <div id="app">{children}</div>
    }

    Source: Fontsource: Install · Vike: Preloading

  • 03Image pipelineThird-party1 pt

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

    Show the how-to

    No image component or optimizer documented; the +image setting only sets the og:image preview. Use a community package such as @unpic/react or a host image CDN. (image, static-directory)

    Code example

    Use <Image> from @unpic/react. It builds a srcset for the image CDN that serves the URL and sets width, height and lazy loading.

    // pages/book/@id/+Page.tsx
    import { Image } from '@unpic/react'
    import { useData } from 'vike-react/useData'
    
    export function Page() {
      const book = useData<{ title: string; coverUrl: string }>()
      return (
        <Image src={book.coverUrl} layout="constrained" width={400} height={600} alt={book.title} priority />
      )
    }

    Source: Unpic: React

    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.

    No first-party <picture> helper documented; hand-write the markup. (image)

    Example

    Vike has no image component, so write <picture> in the page. With @unpic/react, each <Source> gets a media query and its own crop, and <Image> is the fallback.

    // pages/book/@id/BookCover.tsx
    import { Image, Source } from '@unpic/react'
    
    export function BookCover({ title, coverUrl, wideUrl }: { title: string; coverUrl: string; wideUrl: string }) {
      return (
        <picture>
          {/* art direction: a wide banner crop on large screens */}
          <Source media="(min-width: 768px)" src={wideUrl} layout="constrained" width={1200} height={400} />
          <Image src={coverUrl} alt={title} layout="constrained" width={400} height={600} priority />
        </picture>
      )
    }

    Source: Unpic: React · MDN: the picture element

  • 04Data/HTML caching1st-party2 pts

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

    Show the how-to

    prerender: true renders pages to static HTML at build time, per page or for the whole app. +headersResponse sets response headers such as Cache-Control per page; it is marked beta. On Vercel, vercel: { isr: { expiration: 30 } } in a page's +config.js opts into ISR through vite-plugin-vercel. No data cache documented. (pre-rendering, headersResponse, vercel)

    Code example

    prerender: true builds pages to HTML. A dynamic page sets Cache-Control with +headersResponse. On Vercel, a page's +config can opt into ISR.

    // pages/+config.ts
    export default { prerender: true }
    
    // pages/search/+config.ts
    export default { prerender: false }
    
    // pages/search/+headersResponse.ts
    export function headersResponse() {
      return { 'Cache-Control': 'public, s-maxage=60, stale-while-revalidate=600' }
    }
    
    // pages/book/@id/+config.ts (Vercel only, with vite-plugin-vercel)
    export default { vercel: { isr: { expiration: 30 } } }

    Source: Vike: Pre-rendering · Vike: headersResponse · Vike: Vercel

  • 05Route prefetching1st-party2 pts

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

    Show the how-to

    prefetchStaticAssets: 'hover' | 'viewport' | false, default 'hover', per page, with a per-link data-prefetch-static-assets override and a programmatic prefetch('/url'). Only static assets are prefetched; page data is not. (prefetchStaticAssets, prefetch)

    Code example

    prefetchStaticAssets sets when a link's page assets are prefetched. A link can override it with data-prefetch-static-assets, and prefetch() starts it from code.

    // pages/+config.ts
    export default { prefetchStaticAssets: 'viewport' }
    
    // components/BookLink.tsx
    import { prefetch } from 'vike/client/router'
    
    export function BookLink({ id }: { id: string }) {
      return (
        <a href={`/book/${id}`} data-prefetch-static-assets="hover" onFocus={() => prefetch(`/book/${id}`)}>
          Details
        </a>
      )
    }

    Source: Vike: prefetchStaticAssets · Vike: prefetch()

  • 06Streaming SSR1st-party2 pts

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

    Show the how-to

    Set stream: true in a +config.js, for the whole app or per page; it needs ssr: true and one of vike-react, vike-vue or vike-solid. The default is false. The deferred parts are the UI framework's own async boundaries: vike-react streams through react-streaming, and vike-react-query's useSuspenseQuery() shows a <Suspense> fallback while the rest of the page renders. (stream, streaming, vike-react-query)

    Code example

    Set stream: true in +config. With vike-react-query, a component that calls useSuspenseQuery() streams in later, and withFallback() gives it a loading fallback.

    // pages/+config.ts
    import vikeReact from 'vike-react/config'
    import vikeReactQuery from 'vike-react-query/config'
    
    export default { extends: [vikeReact, vikeReactQuery], stream: true }
    
    // pages/book/@id/Reviews.tsx
    import { useSuspenseQuery } from '@tanstack/react-query'
    import { withFallback } from 'vike-react-query'
    
    export const Reviews = withFallback(
      ({ id }: { id: string }) => {
        const { data } = useSuspenseQuery({
          queryKey: ['reviews', id],
          queryFn: () => fetch(`/api/reviews/${id}`).then((r) => r.json()),
        })
        return <ul>{data.map((r: { id: string; text: string }) => <li key={r.id}>{r.text}</li>)}</ul>
      },
      () => <p>Loading reviews…</p>,
    )

    Source: Vike: stream · vike-react-query README

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

    Show the how-to

    Vike builds the list of a page's assets as pageContext.httpResponse.earlyHints (each entry has an earlyHintLink value), so the app does not list assets by hand. The server sends the 103 with its runtime's API, e.g. res.writeEarlyHints({ link: earlyHints.map((e) => e.earlyHintLink) }) on Node 18+. Not marked experimental or beta. (preloading)

    Code example

    renderPage() returns the page's assets in pageContext.httpResponse.earlyHints. Pass their earlyHintLink values to the runtime's 103 API before sending the body.

    // server.ts
    import { renderPage } from 'vike/server'
    
    app.get('*', async (req, res) => {
      const pageContext = await renderPage({ urlOriginal: req.originalUrl })
      const { earlyHints } = pageContext.httpResponse
      // For example with Node.js 18:
      res.writeEarlyHints({ link: earlyHints.map((e) => e.earlyHintLink) })
      // … then send pageContext.httpResponse as usual
    })

    Source: Vike: Preloading

Other features

6/14
  • Manual, like 2 of the other 22 frameworks. 20 frameworks score higher.

    Show the how-to

    No islands or partial hydration documented. <ClientOnly> renders a component in the browser only, which is client-only rendering. The React Server Components extension vike-react-rsc is listed as work in progress (npm 0.0.0) and is not credited. (ClientOnly, extensions)

    Code example

    Make the page HTML-only so it ships no page JavaScript. Then +client.tsx, the page's only browser code, hydrates each marked component by hand.

    // renderer/+config.ts
    export default {
      meta: { Page: { env: { server: true, client: false } } }, // HTML-only
    }
    
    // pages/about/+Page.tsx (server only)
    <div data-island="like" data-props={JSON.stringify({ bookId })}>
      <LikeButton bookId={bookId} />
    </div>
    
    // pages/about/+client.tsx
    import { hydrateRoot } from 'react-dom/client'
    import { LikeButton } from '../../components/LikeButton'
    
    for (const el of document.querySelectorAll<HTMLElement>('[data-island="like"]')) {
      hydrateRoot(el, <LikeButton {...JSON.parse(el.dataset.props!)} />)
    }

    Source: Vike: Render Modes · Vike: +client.js

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

    Show the how-to

    Per-page ssr: false (SPA) and prerender: true | false (SSG) in +config.js, inherited by every page under that directory; stream is per page too. (ssr, pre-rendering, stream)

    Code example

    Put ssr and prerender in a directory's +config. The setting applies to every page under that directory.

    // pages/+config.ts (all pages: SSR, pre-rendered)
    export default { prerender: true }
    
    // pages/admin/+config.ts (admin pages: SPA, not pre-rendered)
    export default { ssr: false, prerender: false }
    
    // pages/search/+config.ts (search: SSR on each request, streamed)
    export default { prerender: false, stream: true }

    Source: Vike: ssr · Vike: Pre-rendering · Vike: stream

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

    Show the how-to

    The Vike-team UI extensions bring the UI framework's own reactivity: Solid signals with vike-solid, Vue refs with vike-vue, and the first-party React Compiler for vike-react, added to the React Vite plugin. (vike-solid, vike-vue, vike-react)

    Code example

    With vike-react, add the React Compiler to the Vite config. It memoizes components and values at build time, so a state change re-renders less.

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

    Source: React: React Compiler installation · Vike: vike-react

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

    Show the how-to

    No first-party analyzer documented; Vike is a Vite plugin, so the third-party route is a community visualizer such as rollup-plugin-visualizer. (settings)

    Code example

    Add rollup-plugin-visualizer next to the Vike plugin. vike build then writes a treemap of the bundle to stats.html.

    // vite.config.ts
    import vike from 'vike/plugin'
    import react from '@vitejs/plugin-react'
    import { visualizer } from 'rollup-plugin-visualizer'
    
    export default {
      plugins: [vike(), react(), 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

    No first-party script-loading strategy documented; +Head and +client.js are where scripts are added by hand. (head-tags)

    Code example

    Put scripts that should load early in +Head with async. Load the rest from +client.ts once the page has loaded and the browser is idle.

    // pages/+Head.tsx
    export function Head() {
      return <script async src="https://example.com/critical.js" />
    }
    
    // pages/+client.ts
    addEventListener('load', () => {
      requestIdleCallback(() => {
        const s = document.createElement('script')
        s.src = 'https://example-analytics.com/script.js'
        s.async = true
        document.head.append(s)
      })
    })

    Source: Vike: Head tags · Vike: +client.js

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

    Show the how-to

    +server gives a built-in server for Node, Bun and Deno self-hosting. Cloudflare uses Cloudflare's @cloudflare/vite-plugin, Netlify uses Netlify's @netlify/vite-plugin, and Vercel uses vite-plugin-vercel; none of the three is a vike package. (self-host, cloudflare, vercel, netlify)

    Code example

    server: true uses Vike's built-in server on Node, Bun or Deno. For Cloudflare or Vercel, add that host's Vite plugin.

    // pages/+config.ts (self-host: node ./dist/server/index.mjs)
    export default { server: true }
    
    // vite.config.ts (Cloudflare)
    import vike from 'vike/plugin'
    import { cloudflare } from '@cloudflare/vite-plugin'
    
    export default {
      plugins: [cloudflare({ viteEnvironment: { name: 'ssr' } }), vike()],
    }
    
    // vite.config.ts (Vercel)
    import { vercel } from 'vite-plugin-vercel/vite'
    
    export default { plugins: [vike(), vercel()] }

    Source: Vike: +server · Vike: Cloudflare · Vike: Vercel

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

    Show the how-to

    No service worker support documented in the Vike docs or its extension list. Hand-write the worker, serve it from public/, and register it from +client.js. (static-directory, extensions)

    Code example

    Write the worker in public/sw.js, which Vite serves at /sw.js. Register it from +client.ts.

    // public/sw.js
    const CACHE = 'v1'
    self.addEventListener('fetch', (event) => {
      if (event.request.method !== 'GET') return
      event.respondWith(
        caches.match(event.request).then((hit) =>
          hit ?? fetch(event.request).then((res) => {
            caches.open(CACHE).then((c) => c.put(event.request, res.clone()))
            return res
          }),
        ),
      )
    })
    // pages/+client.ts
    if ('serviceWorker' in navigator) {
      addEventListener('load', () => navigator.serviceWorker.register('/sw.js'))
    }

    Source: Vike: Static directory · MDN: Using Service Workers

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.

App
vike-books
Repository
github.com/MaxwellCohen/vike-books

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.

Vike: latest benchmark per build and page
BuildPathPerfFCPRaw FCPLCPTBTCLSSITTIDocHosts
Book list /
baseline/83(good)1.530.30(poor)4.61(good)2(good)0.0011.534.611343/3 Vercel, Netlify, Cloudflare
optimized/82(good)0.971.63(poor)4.56(good)9(good)0.0003.274.561323/3 Vercel, Netlify, Cloudflare
Book page /10145787
baseline/1014578795(good)1.510.99(needs improvement)2.76(good)2(good)0.0002.222.811853/3 Vercel, Netlify, Cloudflare
optimized/1014578795(good)0.910.62(needs improvement)2.93(good)0(good)0.0001.532.94783/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.

Vike: latest benchmark per build, page and host
BuildPathHostPerfFCPRaw FCPLCPTBTCLSSITTIDocRunsStatus
Vike
baseline/Vercel83(good)1.540.34(poor)4.66(good)0(good)0.0001.544.661313/3OK
baseline/Netlify83(good)1.510.27(poor)4.50(good)0(good)0.0031.514.501103/3OK
baseline/Cloudflare83(good)1.540.29(poor)4.66(good)7(good)0.0001.544.661623/3OK
baseline/10145787Vercel96(good)1.510.30(needs improvement)2.74(good)4(good)0.0001.512.811333/3OK
baseline/10145787Netlify95(good)1.511.34(needs improvement)2.75(good)0(good)0.0002.692.751863/3OK
baseline/10145787Cloudflare95(good)1.511.33(needs improvement)2.80(good)3(good)0.0002.462.862363/3OK
optimized/Vercel83(good)0.910.21(poor)4.66(good)0(good)0.0001.024.66483/3OK
optimized/Netlify82(good)0.922.29(poor)4.51(good)27(good)0.0004.324.51953/3OK
optimized/Cloudflare81(good)1.082.41(poor)4.51(good)0(good)0.0004.484.512533/3OK
optimized/10145787Vercel94(good)0.910.21(needs improvement)3.02(good)0(good)0.0000.913.06763/3OK
optimized/10145787Netlify95(good)0.931.32(needs improvement)2.90(good)0(good)0.0002.782.90993/3OK
optimized/10145787Cloudflare95(good)0.910.32(needs improvement)2.87(good)0(good)0.0000.912.87603/3OK