Skip to content

Nuxt

Nuxt scores 22 of 28 points. That is 11 of 14 on the 7 features that affect first paint (the moment the browser first draws content), and 11 of 14 on the 7 other features.

Rank 6 of 2322/28 points: 11/14 first-paint, 11/14 other · 79% complete
Version checked
nuxt aliased to nuxt-nightly 4.6.0-29813110.5c8fe35d (pre-release nightly; npm latest 4.6.4), compatibilityVersion 5
Version notes
optimized and nuxt-books-optimized-max branches (main is nuxt ^4.5.2); Vercel runtime cache; routeRules; Fontsource fonts; no @nuxt/fonts
Performance guide
Nuxt performance · Best Practices v4
Issues
github.com/nuxt/nuxt/issues

Scorecard

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

Nuxt's labels across 14 features

  • 1st-party8
  • Experimental5
  • Third-party1
  • Manual0
  • of 14

How it compares

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

Tested in our port

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

First-paint levers

11/14
  • 1st-party, like 7 of the other 22 frameworks. None scores higher.

    Show the how-to

    Set features.inlineStyles: true, but only on this repo's nuxt-books-optimized-max branch; the plain optimized build leaves the global stylesheet linked.

    export default defineNuxtConfig({
      features: {
        // Production SSR embeds entry and component CSS in the HTML.
        inlineStyles: true,
      },
    });

    From this repo's nuxt-books/nuxt.config.ts (nuxt-books-optimized-max branch).

  • 02Font optimization1st-party2 pts

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

    Show the how-to

    Add the official @nuxt/fonts module. It resolves the fonts used in CSS, downloads them at build time, serves them from your own origin, injects @font-face rules, generates fallback metrics for lower CLS, and can subset.

    export default defineNuxtConfig({
      modules: [
        '@nuxt/fonts',
      ]
    })

    Adapted from the module page. This port does not use it; it imports @fontsource-variable/geist manually, so the capability exists in the framework even though this repo took the third-party route:

    @import '@fontsource-variable/geist';

    From this repo's nuxt-books/app/assets/css/main.css (optimized branch).

  • 03Image pipeline1st-party2 pts

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

    Show the how-to

    Install @nuxt/image (separate official module) and use <NuxtImg preload> on the first covers.

    modules: ['@nuxt/image'],
    image: {
      provider: isCloudflare ? 'none' : 'auto',
      quality: 82,
    },
    <NuxtImg :src="source" :sizes="sizes" :preload="priority" :width="400" :height="600" />

    From this repo's nuxt-books/nuxt.config.ts (nuxt-books-optimized-max branch) and app/components/BookCover.vue (optimized branch; some props and options omitted).

    Art direction with <picture>

    1st-party

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

    <NuxtPicture> serves modern formats with a fallback via @nuxt/image; its docs say it does not support multiple image sources, so no breakpoint art direction.

    <NuxtPicture
      format="avif,webp"
      src="/nuxt-icon.png"
    />

    From the NuxtPicture docs.

  • 04Data/HTML caching1st-party2 pts

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

    Show the how-to

    Wrap handlers in defineCachedEventHandler (the Nitro v2 API that this Nuxt 4 port runs on, nitropack 2.13.4; Nitro v3 calls it defineCachedHandler), configure nitro.storage.cache, and add a header-only routeRules cache. The optimized branch uses the Vercel runtime cache, and the max branch adds Netlify Blobs and Cloudflare KV drivers.

    export default defineCachedEventHandler(
      async event => { /* ... */ },
      {
        getKey: event => hashCacheKey(/* filters from the query */),
        maxAge: 60 * 60,
        name: 'books-count',
        swr: true,
      },
    );
    routeRules: {
      '/**': { cache: { headersOnly: true, maxAge: 3600 } },
      '/api/**': { cache: false },
    },

    From this repo's nuxt-books/server/api/books/count.get.ts (optimized branch; handler body elided) and nuxt.config.ts (nuxt-books-optimized-max branch).

  • 05Route prefetchingExperimental1 pt

    Experimental: the only framework of 23 with this label. 19 frameworks score higher.

    Show the how-to

    Use <NuxtLink> prefetch-on="visibility" | "interaction", _payload.json payload prefetch, and experimental.prefetchPreloadTags (experimental, off by default).

    <FastLink :prefetch-on="eagerPrefetch ? 'visibility' : 'interaction'" :to="href">
    experimental: {
      prefetchPreloadTags: true,
    },

    From this repo's nuxt-books/app/components/BookCard.vue (FastLink is this repo's wrapper around NuxtLink; class omitted) and nuxt.config.ts (optimized branch; early404 omitted).

  • 06Streaming SSRExperimental1 pt

    Experimental, like 1 of the other 22 frameworks. 18 frameworks score higher.

    Show the how-to

    Set experimental.ssrStreaming: true. The server sends the shell (<head>, styles, preload hints, entry scripts) first and then streams the body with Vue's renderToWebStream. routeRules can switch it off per route.

    export default defineNuxtConfig({
      experimental: {
        ssrStreaming: true,
      },
      routeRules: {
        '/no-stream/**': { streaming: false },
      },
    })

    From the Nuxt experimental features docs.

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

    Show the how-to

    Set experimental.writeEarlyHints: true. Nuxt then writes a 103 with the page's preload links. The docs limit it to the Node server.

    export default defineNuxtConfig({
      experimental: {
        writeEarlyHints: true,
      },
    })

    From the Nuxt experimental features docs.

Other features

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

    Show the how-to

    Documented lazy hydration (hydrate-on-visible, -on-idle, -on-interaction, -on-media-query, hydrate-never on Lazy* components, SFC only; on by default; the switch is experimental.lazyHydration) and features.noScripts / noScripts:

    <template>
      <div>
        <LazyMyComponent hydrate-on-visible />
      </div>
    </template>

    Adapted from the components docs. Server components and islands stay experimental: server components and islands render a component with no client JS; prop changes refetch the island (<NuxtIsland>), and props travel as query parameters so island responses can be cached by a CDN. nuxt-client selective hydration works only on local .vue SFCs, and slots passed to nuxt-client components are server-rendered and not interactive.

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

    Show the how-to

    routeRules: globs map to prerender, swr, isr, ssr: false, cache headers, redirects, and proxy rules.

    export default defineNuxtConfig({
      routeRules: {
        '/admin/**': { ssr: false },
      },
    })

    Adapted from the rendering docs. This port uses a header-only cache rule on /** (needed for _payload.json prefetch) and disables caching on /api/**, shown in section 4.

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

    Show the how-to

    Vue's ref/reactive tracks dependencies and updates the affected effects. Nothing to enable.

    const value = ref('');

    From this repo's nuxt-books/app/components/BookSearch.vue (optimized branch).

  • Experimental: the only framework of 23 with this label. 2 frameworks score higher.

    Show the how-to

    nuxt analyze (experimental) builds the app and serves client and Nitro reports; --json writes machine-readable output.

    npx nuxt analyze [ROOTDIR] [--serve] [--prerender] [--json]

    Adapted from the analyze command docs (other flags omitted). With Nuxt 5 behaviour the Nitro report needs rollup-plugin-visualizer. The non-experimental build.analyze config option also writes a client-bundle report during a normal nuxt build; with the default Vite builder it loads the community rollup-plugin-visualizer, which must be installed in the project (optional peer dependency), so the cell stays 🧪.

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

    Show the how-to

    @nuxt/scripts is a separate official module (modules page, GitHub) with per-script strategy and proxying; useScript's partytown option loads a script in a web worker and needs @nuxtjs/partytown installed and configured separately.

    const { onLoaded, onError, status } = useScript('https://example.com/sdk.js')

    From the useScript docs.

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

    Show the how-to

    Nitro presets cover every host this repo targets (Node, Vercel, Netlify, Cloudflare). Vercel and Netlify auto-detect their presets; force Workers explicitly:

    nitro: {
      preset: isCloudflare ? 'cloudflare_module' : undefined,
    },

    From this repo's nuxt-books/nuxt.config.ts (nuxt-books-optimized-max branch).

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

    Show the how-to

    Add the community @vite-pwa/nuxt module (listed in the Nuxt modules directory). It generates the service worker and the precache manifest with Workbox and registers it.

    export default defineNuxtConfig({
      modules: ['@vite-pwa/nuxt'],
      pwa: {
        /* PWA options */
      },
    })

    From the Vite PWA Nuxt docs.

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
nuxt-books
Repository
github.com/MaxwellCohen/nuxt-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.

Nuxt: latest benchmark per build and page
BuildPathPerfFCPRaw FCPLCPTBTCLSSITTIDocHosts
Book list /
baseline/84(good)1.531.99(poor)4.26(good)0(good)0.0003.524.261613/3 Vercel, Netlify, Cloudflare
optimized/93(good)0.930.24(needs improvement)3.15(good)15(good)0.0011.393.151053/3 Vercel, Netlify, Cloudflare
Book page /10145787
baseline/1014578796(good)1.510.98(needs improvement)2.57(good)0(good)0.0002.162.571623/3 Vercel, Netlify, Cloudflare
optimized/10145787100(good)0.930.60(good)1.63(good)7(good)0.0011.341.711263/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.

Nuxt: latest benchmark per build, page and host
BuildPathHostPerfFCPRaw FCPLCPTBTCLSSITTIDocRunsStatus
Nuxt
baseline/Vercel84(good)1.542.29(poor)4.21(good)0(good)0.0003.814.211453/41 cold run left out
baseline/Netlify83(good)1.542.33(poor)4.36(good)0(good)0.0003.884.361813/3OK
baseline/Cloudflare84(good)1.521.34(poor)4.21(good)0(good)0.0002.874.211563/3OK
baseline/10145787Vercel97(good)1.510.27(needs improvement)2.56(good)0(good)0.0001.512.56823/3OK
baseline/10145787Netlify96(good)1.511.33(needs improvement)2.59(good)0(good)0.0002.482.591933/3OK
baseline/10145787Cloudflare96(good)1.511.35(needs improvement)2.56(good)1(good)0.0002.512.562113/3OK
optimized/Vercel98(good)0.920.17(good)2.40(good)7(good)0.0001.372.40683/3OK
optimized/Netlify94(good)0.940.32(needs improvement)3.15(good)39(good)0.0031.743.151483/3OK
optimized/Cloudflare88(good)0.920.22(needs improvement)3.90(good)0(good)0.0001.063.90983/3OK
optimized/10145787Vercel100(good)0.920.19(good)1.50(good)12(good)0.0000.921.71813/3OK
optimized/10145787Netlify100(good)0.940.35(good)1.35(good)0(good)0.0030.941.351663/3OK
optimized/10145787Cloudflare99(good)0.931.27(good)2.04(good)8(good)0.0002.172.081303/3OK