# Void (Vue)

Void (Vue) 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 SolidStart, React Router, Void (React), Void (Solid). Labels: 6 1st-party, 0 Experimental, 3 Third-party, 5 Manual.

- Version checked: void 1.12.2 with @void/vue 1.12.2 (npm latest on 2026-11-28), by VoidZero (Void is a Vite 8 framework and deploy CLI that targets Cloudflare Workers by default. These labels are for Pages Routing with the Vue adapter (voidVue() from @void/vue/plugin); the other adapters are scored in their own columns. Books port: void-vue-books, main only, deployed to Cloudflare Workers with void deploy (see the intro above).)
- Performance guide: [Static Assets | Void](https://void.cloud/guide/edge/static-assets)
- Issue tracker: https://github.com/voidzero-dev/void/issues
- Books demo port: [void-vue-books](https://github.com/MaxwellCohen/void-vue-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 | 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 | Manual | 0 |
| [Islands / partial hydration / lazy slices](https://framework-compare.vercel.app/features/islands.md) | Other features | 1st-party | 2 |
| [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 | Manual | 0 |
| [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).

No first-party CSS inlining documented. The render API's `assetTags.css` is "Stylesheet links for `<head>`", and Pages mode inserts the same links. Inline by hand, for example with a Vite `?inline` import. ([ssr](https://void.cloud/guide/ssr), [handlers](https://void.cloud/reference/api/handlers))

Example of building it yourself:

Void has no option to inline CSS, so import the stylesheet with Vite's `?inline` query and render it in a `<style>` element. Void does not add a `<link>` for a file imported this way. Vue templates cannot hold `<style>`, so render it with `h()`.

```vue
<!-- pages/about.vue -->
<script setup lang="ts">
import { h } from 'vue'
import criticalCss from './critical.css?inline'

const InlineStyle = () => h('style', { id: 'about-critical', innerHTML: criticalCss })
</script>

<template>
  <main>
    <InlineStyle />
    <h1>About</h1>
  </main>
</template>
```

Source: [Vite: Disabling CSS injection into the page](https://vite.dev/guide/features#disabling-css-injection-into-the-page) · [Vue: Render functions](https://vuejs.org/guide/extras/render-function.html)

### Font optimization

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

No first-party font handling documented; the docs mention fonts only as CSS variables for the Markdown theme. The third-party route is [Fontsource](https://fontsource.org) packages imported from a stylesheet. ([markdown](https://void.cloud/guide/pages-routing/markdown), [static-assets](https://void.cloud/guide/edge/static-assets))

Example of building it yourself:

Install a Fontsource package so the font files become local build assets, then add the preload link from the page's `head`.

```ts
// pages/index.server.ts
import '@fontsource-variable/geist' // @font-face with font-display: swap
import fontUrl from '@fontsource-variable/geist/files/geist-latin-wght-normal.woff2?url'
import { defineHead } from 'void'

export const head = defineHead(() => ({
  link: [{ rel: 'preload', href: fontUrl, as: 'font', type: 'font/woff2', crossorigin: 'anonymous' }],
}))
```

Source: [Fontsource: Install](https://fontsource.org/docs/getting-started/install) · [Void: Head](https://void.cloud/guide/pages-routing/head)

### Image pipeline

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

No image component or optimizer documented; the head guide covers only `og:image` URLs, and Markdown images are lazy-loaded. Use a community package such as Unpic or a host image CDN. ([head](https://void.cloud/guide/pages-routing/head), [markdown](https://void.cloud/guide/pages-routing/markdown))

Example of building it yourself:

Void has no image component. Resize and re-encode at build time with `vite-imagetools` query imports, and write `width`, `height` and `loading` yourself. For remote covers, use `@unpic/vue` with an image CDN.

```vue
<!-- components/Cover.vue -->
<script setup lang="ts">
import srcset from './cover.jpg?w=320;640;960&format=webp&as=srcset'
import fallback from './cover.jpg?w=640&format=webp'
defineProps<{ title: string }>()
</script>

<template>
  <img :src="fallback" :srcset="srcset" sizes="320px" width="320" height="480" loading="lazy" decoding="async" :alt="title" />
</template>
```

Source: [vite-imagetools](https://github.com/JonasKruckenberg/imagetools) · [Unpic](https://unpic.pics/img/vue/)

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

No first-party `<picture>` helper documented; hand-write the markup. ([head](https://void.cloud/guide/pages-routing/head))

Write the `<picture>` by hand. The `?as=srcset` imports give each `<source>` its own format or crop, and the `<img>` is the fallback.

```vue
<!-- components/Cover.vue -->
<script setup lang="ts">
import avif from './cover.jpg?w=320;640;960&format=avif&as=srcset'
import webp from './cover.jpg?w=320;640;960&format=webp&as=srcset'
import fallback from './cover.jpg?w=640&format=webp'
defineProps<{ title: string }>()
</script>

<template>
  <picture>
    <source type="image/avif" :srcset="avif" sizes="320px" />
    <img :src="fallback" :srcset="webp" sizes="320px" width="320" height="480" :alt="title" />
  </picture>
</template>
```

Source: [vite-imagetools: as=srcset](https://github.com/JonasKruckenberg/imagetools/blob/main/docs/directives.md) · [MDN: `<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture)

### Data/HTML caching

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

ISR with `routing.revalidate` (global or per path), a per-page `export const revalidate = 120`, an `x-revalidate` response header, and on-demand purge with `revalidate({ paths })` from `void/isr`. Pages can be prerendered at deploy time (`export const prerender = true`) or at build time (`output: "static"`). ISR and edge prerendering need the Cloudflare target, where Void provisions the cache itself; `routing.revalidate` is ignored on Node, Bun and Deno. The client keeps prefetched page data for `cacheFor` (default `'30s'`). ([revalidation](https://void.cloud/guide/edge/revalidation), [prerendering](https://void.cloud/guide/edge/prerendering), [ssg](https://void.cloud/guide/ssg), [cloudflare](https://void.cloud/integrations/cloudflare), [nodejs-bun-deno](https://void.cloud/integrations/nodejs-bun-deno))

Example of building it yourself:

On Cloudflare, give a page a revalidate time and Void caches the rendered HTML (ISR); `revalidate({ paths })` from `void/isr` purges it. On Node, Bun and Deno ISR is ignored, so set `Cache-Control` with `routing.headers`.

```ts
// pages/index.server.ts
import { defineHandler } from 'void'

export const revalidate = 120 // seconds, Cloudflare target

export const loader = defineHandler(async () => ({ books: await listBooks() }))
```

```ts
// void.config.ts
import { defineConfig } from 'void/config'

export default defineConfig({
  routing: { headers: { '/': ['Cache-Control: public, s-maxage=120, stale-while-revalidate=600'] } },
})
```

Source: [Void: Revalidation](https://void.cloud/guide/edge/revalidation) · [Void: Headers](https://void.cloud/guide/edge/headers)

Gotchas:

- ISR (`revalidate`) and deploy-time prerendering run only on the Cloudflare target. On `target: 'node'`, `bun` or `deno` they are ignored, so cache with `Cache-Control` from `routing.headers`.

### Route prefetching

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

`<Link href="/dashboard" prefetch>` from `@void/vue`, with strategies `'hover' | 'click' | 'mount' | 'visible'` (or an array), an app-wide `prefetch.defaultStrategy` on `voidVue()` (default `false`), `hoverDelay` (75 ms) and `cacheFor`, plus `router.prefetch()`. Prefetching runs the destination's loader, so page data is prefetched as well as code. Links skip it on data saver or 2G. ([overview](https://void.cloud/guide/pages-routing/overview), [pages adapters](https://void.cloud/reference/api/pages))

Example of building it yourself:

Add `prefetch` to `<Link>`. It loads the destination's code and runs its loader before the click. Strategies are `hover`, `click`, `mount` and `visible`, and `prefetch.defaultStrategy` on `voidVue()` turns it on for every link.

```vue
<!-- components/BookLink.vue -->
<script setup lang="ts">
import { Link } from '@void/vue'
defineProps<{ id: string; title: string }>()
</script>

<template>
  <Link :href="`/${id}`" prefetch="hover">{{ title }}</Link>
</template>
```

Source: [Void: Prefetching](https://void.cloud/reference/api/pages#prefetching)

### Streaming SSR

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

Wrap slow loader values in `defer()`: "The page renders immediately and receives the result when it is ready." The Vue page gets a `{ loading, value, error }` object and renders the loading branch first; the value is streamed into the same response when it resolves. `defer('group', fn)` resolves several props from one call. ([loaders](https://void.cloud/guide/pages-routing/loaders), [pages adapters](https://void.cloud/reference/api/pages))

Example of building it yourself:

Wrap a slow value in `defer()`. The page is sent first, and the value follows later in the same response. The Vue page gets an object with `loading`, `value` and `error`.

```ts
// pages/[id].server.ts
import { defer, defineHandler } from 'void'

export const loader = defineHandler(async (c) => ({
  book: await getBook(c.req.param('id')),
  reviews: defer(() => getReviews(c.req.param('id'))),
}))
```

```vue
<!-- pages/[id].vue -->
<script setup lang="ts">
const props = defineProps<Props>()
</script>

<template>
  <h1>{{ props.book.title }}</h1>
  <p v-if="props.reviews.loading">Loading reviews…</p>
  <p v-else-if="props.reviews.error">Reviews failed to load.</p>
  <Reviews v-else :items="props.reviews.value" />
</template>
```

Source: [Void: Deferred props](https://void.cloud/guide/pages-routing/loaders#deferred-props)

### Early Hints / preload headers

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

No preload `Link` response headers or 103 Early Hints documented. `assetTags.preloads` puts `<link rel="modulepreload">` tags in the HTML `<head>`, not in headers. Set a `Link` header by hand with `routing.headers` or `c.header()`. ([handlers](https://void.cloud/reference/api/handlers), [headers](https://void.cloud/guide/edge/headers))

Example of building it yourself:

Void sends no 103 and no preload `Link` header. It only puts `<link rel="modulepreload">` tags in the HTML. Add the header yourself with `routing.headers`.

```ts
// void.config.ts
import { defineConfig } from 'void/config'

export default defineConfig({
  routing: { headers: { '/*': ['Link: </fonts/geist.woff2>; rel=preload; as=font; crossorigin'] } },
})
```

Source: [Void: Headers](https://void.cloud/guide/edge/headers)

## Other features

### Islands / partial hydration / lazy slices

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

Name a page `*.island.vue` and import interactive components with `import Counter from './_Counter' with { island: 'load' }`. The strategies are `load`, `visible`, `idle` and `media:(query)`. Components imported without the attribute ship no JavaScript. Island pages have no client router (full-page navigation), and island pages without a loader are prerendered automatically. ([islands](https://void.cloud/guide/pages-routing/islands))

Example of building it yourself:

Name the page `*.island.vue` and import each interactive component with an `island` import attribute. Components imported without it render to HTML and ship no JavaScript. Island pages have no client router.

```vue
<!-- pages/about.island.vue -->
<script setup lang="ts">
import Counter from './_Counter.vue' with { island: 'visible' } // load | visible | idle | media:(query)
import StaticNote from './_StaticNote.vue'
</script>

<template>
  <main>
    <StaticNote />
    <Counter />
  </main>
</template>
```

Source: [Void: Islands](https://void.cloud/guide/pages-routing/islands)

Gotchas:

- Island pages have no client router: links out of them are full page loads. In the local Vue build the island page's chunk, static component included, still sat in the main pages bundle; the island page itself never requested it.

### Per-route render modes

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

Per-page `ssr = false` (client-mounted shell, loader still runs), `prerender = true | false`, and `revalidate = <seconds>` exports in the `.server.ts` companion. App-wide `output: "static"` flips the prerender default, and island and Markdown pages are a further static mode. ([overview](https://void.cloud/guide/pages-routing/overview), [ssg](https://void.cloud/guide/ssg), [revalidation](https://void.cloud/guide/edge/revalidation))

Example of building it yourself:

Pages render on each request by default. A page's `.server.ts` can turn off SSR or prerender it, and `output: 'static'` in `void.config.ts` prerenders every page unless it opts out.

```ts
// pages/account.server.ts: rendered in the browser only; the loader still runs on the server
export const ssr = false
```

```ts
// pages/about.server.ts: built to HTML (deploy-time on Cloudflare, build-time with output: 'static')
export const prerender = true
```

Source: [Void: Pages routing](https://void.cloud/guide/pages-routing/overview) · [Void: Static sites](https://void.cloud/guide/ssg) · [Void: Prerendering](https://void.cloud/guide/edge/prerendering)

Gotchas:

- With `output: 'static'` on `target: 'node'` (1.12.2), the prerendered HTML is written to `dist/client`, but the Node server renders those pages again on every request. The local ports needed middleware to serve the files.

### Fine-grained client reactivity

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

Vue refs and `computed` track dependencies; a change re-renders only the components that read it. ([pages adapters](https://void.cloud/reference/api/pages), [vue reactivity](https://vuejs.org/guide/essentials/reactivity-fundamentals.html))

Example of building it yourself:

`@void/vue` keeps Vue's reactivity: a `ref` change re-renders only the components that read it.

```vue
<!-- pages/counter.vue -->
<script setup lang="ts">
import { ref } from 'vue'
const count = ref(0)
</script>

<template>
  <button @click="count++">Count: {{ count }}</button>
</template>
```

Source: [Void: Pages API](https://void.cloud/reference/api/pages) · [Vue: Reactivity fundamentals](https://vuejs.org/guide/essentials/reactivity-fundamentals.html)

### Built-in bundle analysis

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

No first-party analyzer documented, and the CLI has no analyze command. Void is a Vite plugin, so the third-party route is a community visualizer such as [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer). ([cli](https://void.cloud/reference/cli))

Example of building it yourself:

Void has no analyze command. Add `rollup-plugin-visualizer` to `vite.config.ts` for the client build.

```ts
// vite.config.ts
import { voidVue } from '@void/vue/plugin'
import { visualizer } from 'rollup-plugin-visualizer'
import { defineConfig } from 'vite'
import { voidPlugin } from 'void'

export default defineConfig({
  plugins: [
    voidPlugin(),
    voidVue(),
    process.env.ANALYZE && { ...visualizer({ filename: 'dist/stats.html' }), applyToEnvironment: (env) => env.name === 'client' },
  ],
})
```

Source: [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer) · [Void: CLI](https://void.cloud/reference/cli)

### Third-party script strategies

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

No first-party script-loading strategy documented. `head()` and middleware `headDefaults` accept `script` entries, which add tags by hand, and Markdown pages take a `<script>` block. ([head](https://void.cloud/guide/pages-routing/head), [markdown](https://void.cloud/guide/pages-routing/markdown))

Example of building it yourself:

Void has no script-loading strategy. Add the tag from `head` with `defer` or `async`.

```ts
// pages/layout.server.ts or any page's .server.ts
import { defineHead } from 'void'

export const head = defineHead(() => ({
  script: [{ src: 'https://example.com/analytics.js', defer: 'defer' }],
}))
```

Source: [Void: Head](https://void.cloud/guide/pages-routing/head)

### Portable multi-host deployment

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

`target` is `"cloudflare"` (default, deployed with `void deploy`), `"node"`, `"bun"` or `"deno"`. Non-Cloudflare targets build a Hono server in `dist/ssr` for you to host, and they drop D1, KV, R2, auth, ISR and edge prerendering. `output: "static"` builds files any static host can serve (the docs name GitHub Pages). No Vercel or Netlify adapter is documented, so this is scored like Remix 3 (Node, Bun, Deno, Cloudflare). ([config](https://void.cloud/reference/config), [nodejs-bun-deno](https://void.cloud/integrations/nodejs-bun-deno), [deployment](https://void.cloud/guide/deployment), [ssg](https://void.cloud/guide/ssg))

Example of building it yourself:

Set `target` in `void.config.ts`. `cloudflare` (the default) deploys with `void deploy`. `node`, `bun` and `deno` build a Hono server in `dist/ssr` that you host yourself, without ISR, edge prerendering or the D1, KV and R2 bindings. No Vercel or Netlify target is documented.

```ts
// void.config.ts
import { defineConfig } from 'void/config'

export default defineConfig({
  target: 'node', // 'cloudflare' | 'node' | 'bun' | 'deno'
})
```

```sh
npx vite build && node dist/ssr/index.js
```

Source: [Void: Config](https://void.cloud/reference/config) · [Void: Node.js, Bun and Deno](https://void.cloud/integrations/nodejs-bun-deno)

Gotchas:

- On `target: 'node'` (1.12.2), a root dynamic page such as `pages/[id].tsx` catches files from `public/` (`/icon.svg` returns 404). Serve them from middleware that runs before routing.
- With `output: 'static'`, the prerender step runs in Node, so `target: 'bun'` fails with `Bun is not defined` unless you build with `bunx --bun vite build`. Deno fails the same way.
- The build stops if the project root has any dotenv file other than `.env`, such as `.env.example`, on every target.

### Service worker / offline support

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

No service worker support documented. Hand-write the worker, serve it from `public/`, and register it from client code. ([static-assets](https://void.cloud/guide/edge/static-assets))

Example of building it yourself:

Void has no service worker support. Put a hand-written worker in `public/` and register it from client code.

```ts
// src/register-sw.ts, imported from a client component
if ('serviceWorker' in navigator) {
  navigator.serviceWorker.register('/sw.js')
}
```

Source: [Void: Static assets](https://void.cloud/guide/edge/static-assets)

## Other performance features

- View transitions: `voidVue({ viewTransitions: true })` cross-fades navigations, with a per-link `viewTransition` prop and CSS customization. ([view-transitions](https://void.cloud/guide/pages-routing/view-transitions))
- Hashed build files get `Cache-Control: public, max-age=31536000, immutable` and ETag/304 handling at the edge, and an open tab whose build was replaced by a deploy recovers with a document load (`deployRecovery`). ([static-assets](https://void.cloud/guide/edge/static-assets), [overview](https://void.cloud/guide/pages-routing/overview))

## Deployments of the Books demo

| Branch | Note | Vercel | Netlify | Cloudflare |
| --- | --- | --- | --- | --- |
| `main` | vibe port; void deploy from GitHub Actions |  |  | https://void-vue-books.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 | 85 | 1.51 s | 0.27 s | 4.36 s | 40 ms | 0.000 |
| one book (/10145787) | baseline | `main` | cloudflare | 96 | 1.51 s | 1.34 s | 2.56 s | 0 ms | 0.000 |

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

---

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