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.
- 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
- 01Production CSS inlining1st-party2 pts
1st-party, like 7 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Set
features.inlineStyles: true, but only on this repo'snuxt-books-optimized-maxbranch; the plainoptimizedbuild 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-maxbranch). - 02Font optimization1st-party2 pts
1st-party, like 3 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Add the official
@nuxt/fontsmodule. It resolves the fonts used in CSS, downloads them at build time, serves them from your own origin, injects@font-facerules, 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/geistmanually, 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(optimizedbranch). - 03Image pipeline1st-party2 pts
1st-party, like 8 of the other 22 frameworks. None scores higher.
Show the how-toHide 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-maxbranch) andapp/components/BookCover.vue(optimizedbranch; some props and options omitted).Art direction with <picture>
1st-partyServing 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-toHide the how-to
Wrap handlers in
defineCachedEventHandler(the Nitro v2 API that this Nuxt 4 port runs on,nitropack2.13.4; Nitro v3 calls itdefineCachedHandler), configurenitro.storage.cache, and add a header-onlyrouteRulescache. 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(optimizedbranch; handler body elided) andnuxt.config.ts(nuxt-books-optimized-maxbranch). - 05Route prefetchingExperimental1 pt
Experimental: the only framework of 23 with this label. 19 frameworks score higher.
Show the how-toHide the how-to
Use
<NuxtLink>prefetch-on="visibility" | "interaction",_payload.jsonpayload prefetch, andexperimental.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(FastLinkis this repo's wrapper aroundNuxtLink; class omitted) andnuxt.config.ts(optimizedbranch;early404omitted). - 06Streaming SSRExperimental1 pt
Experimental, like 1 of the other 22 frameworks. 18 frameworks score higher.
Show the how-toHide 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'srenderToWebStream.routeRulescan switch it off per route.export default defineNuxtConfig({ experimental: { ssrStreaming: true, }, routeRules: { '/no-stream/**': { streaming: false }, }, }) - 07Early Hints / preload headersExperimental1 pt
Experimental, like 2 of the other 22 frameworks. 4 frameworks score higher.
Show the how-toHide 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, }, })
Other features
- 08Islands / partial hydration / lazy slicesExperimental1 pt
Experimental, like 4 of the other 22 frameworks. 15 frameworks score higher.
Show the how-toHide the how-to
Documented lazy hydration (
hydrate-on-visible,-on-idle,-on-interaction,-on-media-query,hydrate-neveronLazy*components, SFC only; on by default; the switch isexperimental.lazyHydration) andfeatures.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-clientselective hydration works only on local.vueSFCs, and slots passed tonuxt-clientcomponents are server-rendered and not interactive. - 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
routeRules: globs map toprerender,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.jsonprefetch) and disables caching on/api/**, shown in section 4. - 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
Vue's
ref/reactivetracks dependencies and updates the affected effects. Nothing to enable.const value = ref('');From this repo's
nuxt-books/app/components/BookSearch.vue(optimizedbranch). - 11Built-in bundle analysisExperimental1 pt
Experimental: the only framework of 23 with this label. 2 frameworks score higher.
Show the how-toHide the how-to
nuxt analyze(experimental) builds the app and serves client and Nitro reports;--jsonwrites 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-experimentalbuild.analyzeconfig option also writes a client-bundle report during a normalnuxt build; with the default Vite builder it loads the communityrollup-plugin-visualizer, which must be installed in the project (optional peer dependency), so the cell stays 🧪. - 12Third-party script strategies1st-party2 pts
1st-party, like 4 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
@nuxt/scriptsis a separate official module (modules page, GitHub) with per-script strategy and proxying;useScript'spartytownoption loads a script in a web worker and needs@nuxtjs/partytowninstalled and configured separately.const { onLoaded, onError, status } = useScript('https://example.com/sdk.js')From the useScript docs.
- 13Portable multi-host deployment1st-party2 pts
1st-party, like 7 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Nitro
presetscover 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-maxbranch). - 14Service worker / offline supportThird-party1 pt
Third-party, like 2 of the other 22 frameworks. 2 frameworks score higher.
Show the how-toHide the how-to
Add the community
@vite-pwa/nuxtmodule (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
Branch
main
vibe port
- Netlify
- nuxt-books.netlify.app
- Cloudflare
- nuxt-books.to-email-max.workers.dev
Branch
optimized
fork from work by atinux — thanks
Branch
nuxt-books-optimized-max
atinux port + persistent Nitro cache on Netlify and Cloudflare
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 | / | 84 | (good)1.53 | 1.99 | (poor)4.26 | (good)0 | (good)0.000 | 3.52 | 4.26 | 161 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | / | 93 | (good)0.93 | 0.24 | (needs improvement)3.15 | (good)15 | (good)0.001 | 1.39 | 3.15 | 105 | 3/3 Vercel, Netlify, Cloudflare |
| Book page /10145787 | |||||||||||
| baseline | /10145787 | 96 | (good)1.51 | 0.98 | (needs improvement)2.57 | (good)0 | (good)0.000 | 2.16 | 2.57 | 162 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | /10145787 | 100 | (good)0.93 | 0.60 | (good)1.63 | (good)7 | (good)0.001 | 1.34 | 1.71 | 126 | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Nuxt | |||||||||||||
| baseline | / | Vercel | 84 | (good)1.54 | 2.29 | (poor)4.21 | (good)0 | (good)0.000 | 3.81 | 4.21 | 145 | 3/4 | 1 cold run left out |
| baseline | / | Netlify | 83 | (good)1.54 | 2.33 | (poor)4.36 | (good)0 | (good)0.000 | 3.88 | 4.36 | 181 | 3/3 | OK |
| baseline | / | Cloudflare | 84 | (good)1.52 | 1.34 | (poor)4.21 | (good)0 | (good)0.000 | 2.87 | 4.21 | 156 | 3/3 | OK |
| baseline | /10145787 | Vercel | 97 | (good)1.51 | 0.27 | (needs improvement)2.56 | (good)0 | (good)0.000 | 1.51 | 2.56 | 82 | 3/3 | OK |
| baseline | /10145787 | Netlify | 96 | (good)1.51 | 1.33 | (needs improvement)2.59 | (good)0 | (good)0.000 | 2.48 | 2.59 | 193 | 3/3 | OK |
| baseline | /10145787 | Cloudflare | 96 | (good)1.51 | 1.35 | (needs improvement)2.56 | (good)1 | (good)0.000 | 2.51 | 2.56 | 211 | 3/3 | OK |
| optimized | / | Vercel | 98 | (good)0.92 | 0.17 | (good)2.40 | (good)7 | (good)0.000 | 1.37 | 2.40 | 68 | 3/3 | OK |
| optimized | / | Netlify | 94 | (good)0.94 | 0.32 | (needs improvement)3.15 | (good)39 | (good)0.003 | 1.74 | 3.15 | 148 | 3/3 | OK |
| optimized | / | Cloudflare | 88 | (good)0.92 | 0.22 | (needs improvement)3.90 | (good)0 | (good)0.000 | 1.06 | 3.90 | 98 | 3/3 | OK |
| optimized | /10145787 | Vercel | 100 | (good)0.92 | 0.19 | (good)1.50 | (good)12 | (good)0.000 | 0.92 | 1.71 | 81 | 3/3 | OK |
| optimized | /10145787 | Netlify | 100 | (good)0.94 | 0.35 | (good)1.35 | (good)0 | (good)0.003 | 0.94 | 1.35 | 166 | 3/3 | OK |
| optimized | /10145787 | Cloudflare | 99 | (good)0.93 | 1.27 | (good)2.04 | (good)8 | (good)0.000 | 2.17 | 2.08 | 130 | 3/3 | OK |