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.
- 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
- 01Production CSS inliningManual0 pts
Manual, like 11 of the other 22 frameworks. 11 frameworks score higher.
Show the how-toHide 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?inlineimport. (preloading)Code example
Import the critical stylesheet with Vite's
?inlinequery 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-toHide 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-toHide the how-to
No image component or optimizer documented; the
+imagesetting only sets theog:imagepreview. Use a community package such as@unpic/reactor a host image CDN. (image, static-directory)Code example
Use
<Image>from@unpic/react. It builds asrcsetfor 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>
ManualServing 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 amediaquery 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-toHide the how-to
prerender: truerenders pages to static HTML at build time, per page or for the whole app.+headersResponsesets response headers such asCache-Controlper page; it is marked beta. On Vercel,vercel: { isr: { expiration: 30 } }in a page's+config.jsopts into ISR throughvite-plugin-vercel. No data cache documented. (pre-rendering, headersResponse, vercel)Code example
prerender: truebuilds pages to HTML. A dynamic page setsCache-Controlwith+headersResponse. On Vercel, a page's+configcan 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-toHide the how-to
prefetchStaticAssets: 'hover' | 'viewport' | false, default'hover', per page, with a per-linkdata-prefetch-static-assetsoverride and a programmaticprefetch('/url'). Only static assets are prefetched; page data is not. (prefetchStaticAssets, prefetch)Code example
prefetchStaticAssetssets when a link's page assets are prefetched. A link can override it withdata-prefetch-static-assets, andprefetch()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-toHide the how-to
Set
stream: truein a+config.js, for the whole app or per page; it needsssr: trueand one ofvike-react,vike-vueorvike-solid. The default isfalse. The deferred parts are the UI framework's own async boundaries:vike-reactstreams throughreact-streaming, andvike-react-query'suseSuspenseQuery()shows a<Suspense>fallback while the rest of the page renders. (stream, streaming, vike-react-query)Code example
Set
stream: truein+config. Withvike-react-query, a component that callsuseSuspenseQuery()streams in later, andwithFallback()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
- 07Early Hints / preload headers1st-party2 pts
1st-party, like 3 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Vike builds the list of a page's assets as
pageContext.httpResponse.earlyHints(each entry has anearlyHintLinkvalue), 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 inpageContext.httpResponse.earlyHints. Pass theirearlyHintLinkvalues 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
- 08Islands / partial hydration / lazy slicesManual0 pts
Manual, like 2 of the other 22 frameworks. 20 frameworks score higher.
Show the how-toHide 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 extensionvike-react-rscis 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
- 09Per-route render modes1st-party2 pts
1st-party, like 18 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Per-page
ssr: false(SPA) andprerender: true | false(SSG) in+config.js, inherited by every page under that directory;streamis per page too. (ssr, pre-rendering, stream)Code example
Put
ssrandprerenderin 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
- 10Fine-grained client reactivity1st-party2 pts
1st-party, like 21 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
The Vike-team UI extensions bring the UI framework's own reactivity: Solid signals with
vike-solid, Vue refs withvike-vue, and the first-party React Compiler forvike-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
- 11Built-in bundle analysisThird-party1 pt
Third-party, like 18 of the other 22 frameworks. 2 frameworks score higher.
Show the how-toHide 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-visualizernext to the Vike plugin.vike buildthen writes a treemap of the bundle tostats.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
- 12Third-party script strategiesManual0 pts
Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.
Show the how-toHide the how-to
No first-party script-loading strategy documented;
+Headand+client.jsare where scripts are added by hand. (head-tags)Code example
Put scripts that should load early in
+Headwithasync. Load the rest from+client.tsonce 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
- 13Portable multi-host deploymentThird-party1 pt
Third-party, like 5 of the other 22 frameworks. 8 frameworks score higher.
Show the how-toHide the how-to
+servergives 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 usesvite-plugin-vercel; none of the three is avikepackage. (self-host, cloudflare, vercel, netlify)Code example
server: trueuses 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
- 14Service worker / offline supportManual0 pts
Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.
Show the how-toHide 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')) }
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
Branch
main
baseline
- Vercel
- vike-books.vercel.app
- Netlify
- vike-books.netlify.app
- Cloudflare
- vike-books.to-email-max.workers.dev
Branch
optimized
prefetch + cacheControl + Vercel ISR + fonts + data cache
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.
| Build | Path | Perf | FCP | Raw FCP | LCP | TBT | CLS | SI | TTI | Doc | Hosts |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Book list / | |||||||||||
| baseline | / | 83 | (good)1.53 | 0.30 | (poor)4.61 | (good)2 | (good)0.001 | 1.53 | 4.61 | 134 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | / | 82 | (good)0.97 | 1.63 | (poor)4.56 | (good)9 | (good)0.000 | 3.27 | 4.56 | 132 | 3/3 Vercel, Netlify, Cloudflare |
| Book page /10145787 | |||||||||||
| baseline | /10145787 | 95 | (good)1.51 | 0.99 | (needs improvement)2.76 | (good)2 | (good)0.000 | 2.22 | 2.81 | 185 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | /10145787 | 95 | (good)0.91 | 0.62 | (needs improvement)2.93 | (good)0 | (good)0.000 | 1.53 | 2.94 | 78 | 3/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.
| Build | Path | Host | Perf | FCP | Raw FCP | LCP | TBT | CLS | SI | TTI | Doc | Runs | Status |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Vike | |||||||||||||
| baseline | / | Vercel | 83 | (good)1.54 | 0.34 | (poor)4.66 | (good)0 | (good)0.000 | 1.54 | 4.66 | 131 | 3/3 | OK |
| baseline | / | Netlify | 83 | (good)1.51 | 0.27 | (poor)4.50 | (good)0 | (good)0.003 | 1.51 | 4.50 | 110 | 3/3 | OK |
| baseline | / | Cloudflare | 83 | (good)1.54 | 0.29 | (poor)4.66 | (good)7 | (good)0.000 | 1.54 | 4.66 | 162 | 3/3 | OK |
| baseline | /10145787 | Vercel | 96 | (good)1.51 | 0.30 | (needs improvement)2.74 | (good)4 | (good)0.000 | 1.51 | 2.81 | 133 | 3/3 | OK |
| baseline | /10145787 | Netlify | 95 | (good)1.51 | 1.34 | (needs improvement)2.75 | (good)0 | (good)0.000 | 2.69 | 2.75 | 186 | 3/3 | OK |
| baseline | /10145787 | Cloudflare | 95 | (good)1.51 | 1.33 | (needs improvement)2.80 | (good)3 | (good)0.000 | 2.46 | 2.86 | 236 | 3/3 | OK |
| optimized | / | Vercel | 83 | (good)0.91 | 0.21 | (poor)4.66 | (good)0 | (good)0.000 | 1.02 | 4.66 | 48 | 3/3 | OK |
| optimized | / | Netlify | 82 | (good)0.92 | 2.29 | (poor)4.51 | (good)27 | (good)0.000 | 4.32 | 4.51 | 95 | 3/3 | OK |
| optimized | / | Cloudflare | 81 | (good)1.08 | 2.41 | (poor)4.51 | (good)0 | (good)0.000 | 4.48 | 4.51 | 253 | 3/3 | OK |
| optimized | /10145787 | Vercel | 94 | (good)0.91 | 0.21 | (needs improvement)3.02 | (good)0 | (good)0.000 | 0.91 | 3.06 | 76 | 3/3 | OK |
| optimized | /10145787 | Netlify | 95 | (good)0.93 | 1.32 | (needs improvement)2.90 | (good)0 | (good)0.000 | 2.78 | 2.90 | 99 | 3/3 | OK |
| optimized | /10145787 | Cloudflare | 95 | (good)0.91 | 0.32 | (needs improvement)2.87 | (good)0 | (good)0.000 | 0.91 | 2.87 | 60 | 3/3 | OK |