Next
Next scores 25 of 28 points. That is 13 of 14 on the 7 features that affect first paint (the moment the browser first draws content), and 12 of 14 on the 7 other features.
- Version checked
- next 16.4.6 (npm latest)
- Version notes
- Cache Components, inlineCss, reactCompiler, partialPrefetching, ensureStatic = 'shell'
- Performance guide
- How to optimize your Next.js application for production
- Issues
- github.com/vercel/next.js/issues
Scorecard
All 14 features, in two groups. Each row shows Next's label, how that label compares across all 23 frameworks, and how to enable the feature. Feature names link to Next's entry on that feature's page.
Next's labels across 14 features
- 1st-party11
- Experimental1
- Third-party2
- Manual0
- of 14
How it compares
On 11 of 14 features, no framework has a higher-scoring label than Next. On the other 3, at least one does.
Tested in our port
The next-books port passes 11/11 feature tests. Run on 2026-11-26 at MaxwellCohen/next-books@f924ee4. How we test labels
First-paint levers
- 01Production CSS inliningExperimental1 pt
Experimental, like 2 of the other 22 frameworks. 8 frameworks score higher.
Show the how-toHide the how-to
Set
experimental.inlineCss: trueinnext.config.ts(documented as experimental). One flag.const nextConfig: NextConfig = { experimental: { inlineCss: true, }, };From this repo's
next-books/next.config.ts(other options omitted). - 02Font optimization1st-party2 pts
1st-party, like 3 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
next/font/googleself-hosts, subsets, generates the@font-face, and preloads at build time. No config beyond using it in the layout.import { Geist } from 'next/font/google'; const geistSans = Geist({ display: 'block', subsets: ['latin'], variable: '--font-geist-sans', });From this repo's
next-books/app/layout.tsx(theGeist_Monoimport and instance omitted). - 03Image pipeline1st-party2 pts
1st-party, like 8 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Use
next/imageplus the built-in optimizer,priorityon the first ten covers (deprecated in v16 in favour ofpreload),sizes, andplaceholder="blur"fed by ThumbHash data URIs generated by this port's own code.<Image alt={title} blurDataURL={thumbhash ? createPngDataUri(thumbhash) : undefined} fill placeholder={thumbhash ? 'blur' : 'empty'} priority={priority} sizes={sizes} src={resolved} />From this repo's
next-books/features/book/components/book-cover.tsx(some props omitted).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.
getImageProps()returns per-breakpoint props; you hand-write the<picture>and<source>elements (hence 🔧).getImageProps()is stable (v14.1.0) and the built-in optimizer already negotiates AVIF/WebP from theAcceptheader; this row scores only whether the framework emits a<picture>for you.const { props: { srcSet: desktop }, } = getImageProps({ ...common, width: 1440, height: 875, quality: 80, src: '/desktop.jpg' }) const { props: { srcSet: mobile, ...rest }, } = getImageProps({ ...common, width: 750, height: 1334, quality: 70, src: '/mobile.jpg' }) return ( <picture> <source media="(min-width: 1000px)" srcSet={desktop} /> <source media="(min-width: 500px)" srcSet={mobile} /> <img {...rest} style={{ width: '100%', height: 'auto' }} /> </picture> )Adapted from the image docs, where
commonis{ alt: 'Art Direction Example', sizes: '100vw' }. - 04Data/HTML caching1st-party2 pts
1st-party, like 16 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Turn on
cacheComponents: true(enabled here), then mark queries with'use cache'andcacheLife('hours').const nextConfig: NextConfig = { cacheComponents: true, };export async function getBooksPage(query: BookQuery): Promise<BookSummary[]> { 'use cache'; cacheLife('hours'); // ...query the database }From this repo's
next-books/next.config.ts(other options omitted) andfeatures/book/book-queries.ts(query body omitted). - 05Route prefetching1st-party2 pts
1st-party, like 18 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Set
partialPrefetching(needscacheComponents; 16.3+), passprefetch={true}on high-value links (<Link>), and optionally add theFastLinkmouse-down navigation.const nextConfig: NextConfig = { cacheComponents: true, partialPrefetching: true, };<FastLink href={href} prefetch={true}>Adapted from this repo's
next-books/next.config.ts(other options omitted) andfeatures/book/components/book-pagination.tsx(hrefexpression simplified; other props omitted);FastLinkis this repo's wrapper aroundLink. - 06Streaming SSR1st-party2 pts
1st-party, like 17 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Streaming is built into the App Router. Add a
loading.tsxfile next to a page, or wrap a slow component in<Suspense>; the fallback is sent with the shell and the content follows in the same response.import { Suspense } from 'react' export default function Page() { return ( <Suspense fallback={<p>Loading feed...</p>}> <PostFeed /> </Suspense> ) }Adapted from the Next streaming guide (imports of the page's own components omitted).
- 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
Nothing to enable in the App Router. During prerendering React emits preload headers for fonts, scripts, and stylesheets, and Next adds them to the response.
reactMaxHeadersLengthcaps their total length (default 6000) for proxies that truncate long headers. Next does not document sending a 103 itself.module.exports = { reactMaxHeadersLength: 1000, }
Other features
- 08Islands / partial hydration / lazy slices1st-party2 pts
1st-party, like 14 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Server Components keep a component's JavaScript out of the browser (server and client components). Every Client Component still hydrates: no hydrate-on-visible/idle/never control is documented (
next/dynamicwithssr: falseis client-only rendering, not deferred hydration), although React hydrates each<Suspense>boundary as its own unit and prioritizes the one being interacted with (streaming guide). EnablingcacheComponents: true(the same flag as in section 4, enabled here) renders a cached shell and fills request-time holes. That is functionally close to a server island, but the API is an uncached data boundary inside Suspense, not a named island with its own cache entry.Code example
Pages and layouts are Server Components by default and send no component JavaScript. Mark only the interactive part with
'use client'. That component still hydrates, but the rest of the page stays server-only.// app/[id]/page.tsx (Server Component) import LikeButton from '@/app/ui/like-button' import { getPost } from '@/lib/data' export default async function Page({ params }: { params: Promise<{ id: string }> }) { const { id } = await params const post = await getPost(id) return ( <main> <h1>{post.title}</h1> <LikeButton likes={post.likes} /> </main> ) }// app/ui/like-button.tsx 'use client' import { useState } from 'react' export default function LikeButton({ likes }: { likes: number }) { // … } - 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
Next documents stable per-route exports: without Cache Components,
dynamicandrevalidate(previous-model guide); with Cache Components,ensureStatic(v16.4.0+; this port setsensureStatic = 'shell'in the root layout) plus'use cache'boundaries (see section 4). This port enables Cache Components, wheredynamic,revalidate,fetchCache, anddynamicParamsare removed (route segment config).Code example
With
cacheComponents: true, a layout or page exportsensureStaticto say how much of the route must be static. The port sets'shell'on the root layout, so the App Shell is prerendered and request-specific content streams in behind<Suspense>.'navigation'would require the whole route to be static.// app/layout.tsx import { Suspense } from 'react' // … // Every route's App Shell (sidebar, header, Suspense fallbacks) must stay static; // request-specific content streams in behind Suspense at prefetch/navigation time. export const ensureStatic = 'shell' export default function RootLayout({ children }: { children: React.ReactNode }) { return ( <html lang="en"> <body> <Suspense fallback={<HomeLinkFallback />}> <HomeLink /> </Suspense> {children} </body> </html> ) }Source: Next.js: ensureStatic
- 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 first-party React Compiler, switched on with
reactCompiler: true(stable since v16.0.0; enabled in this port). Next runs it through the Babel plugin, applied only to files with JSX or hooks; Next 16.4 also has an experimental native Rust build of the compiler,experimental.turbopackRustReactCompiler: true, used alongsidereactCompiler: true.const nextConfig: NextConfig = { reactCompiler: true, };From this repo's
next-books/next.config.ts(other options omitted). - 11Built-in bundle analysis1st-party2 pts
1st-party, like 1 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
The Turbopack bundle analyzer (guide) shipped in v16.1 as
next experimental-analyzeand isnext analyzeas of v16.4.0 (the old name remains an alias). It opens the Turbopack module graph with per-route client/server filtering;--outputsaves a static report andnext analyze export(v16.4.0+) streams the saved data. This port runs 16.4.6 and usesnext analyze. The same guide covers the@next/bundle-analyzerplugin for webpack builds.npx next analyze npx next analyze --output - 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
Use
next/scriptwithbeforeInteractive,afterInteractive, andlazyOnloadstrategies for the App Router.workeris experimental,pages/-only, and needsexperimental.nextScriptWorkers. The experimental@next/third-parties(guide) wraps common embeds.import Script from 'next/script' export default function Page() { return ( <> <Script src="https://example.com/script.js" strategy="lazyOnload" /> </> ) }From the Script docs.
- 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
A stable Adapter API (
adapterPath, v16.2+) with verified Vercel and Bun adapters; Cloudflare and Netlify "are working on verified adapters" (deploying). They use their own integrations today: OpenNext for Cloudflare and@netlify/plugin-nextjsfor Netlify in this port.output: 'standalone'covers self-hosting, though this port does not set it.const nextConfig = { adapterPath: require.resolve('./my-adapter.js'), }Adapted from the adapterPath docs.
- 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
Next has no service worker build step. Its PWA guide hand-writes
public/sw.jsfor push notifications and names the community Serwist package for offline caching.@serwist/nextwraps the Next config, compiles your worker, and injects the precache list. Next's own experimentaluseOfflinehook retries failed navigations once the network returns; it is not a service worker.import withSerwistInit from "@serwist/next"; const withSerwist = withSerwistInit({ swSrc: "app/sw.ts", swDest: "public/sw.js", }); export default withSerwist({ // Your Next.js config });Adapted from the Serwist getting-started guide (revision and offline-fallback entries omitted).
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
- next-books
- Repository
- github.com/MaxwellCohen/next-books
Branch
main
fork from work by aurorascharff
- Netlify
- max-next-books.netlify.app
- Cloudflare
- next-books.to-email-max.workers.dev
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 | / | 97 | (good)0.91 | 0.31 | (needs improvement)2.63 | (good)17 | (good)0.000 | 1.59 | 2.65 | 155 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | / | 94 | (good)0.98 | 1.43 | (needs improvement)2.93 | (good)29 | (good)0.000 | 2.90 | 2.96 | 253 | 3/3 Vercel, Netlify, Cloudflare |
| Book page /10145787 | |||||||||||
| baseline | /10145787 | 99 | (good)0.81 | 0.81 | (good)2.25 | (good)31 | (good)0.000 | 1.81 | 2.26 | 297 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | /10145787 | 97 | (good)0.98 | 1.27 | (good)2.33 | (good)45 | (good)0.000 | 2.51 | 2.33 | 395 | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Next | |||||||||||||
| baseline | / | Vercel | 99 | (good)0.91 | 0.25 | (good)2.27 | (good)1 | (good)0.000 | 1.07 | 2.27 | 107 | 3/3 | OK |
| baseline | / | Netlify | 95 | (good)0.91 | 0.32 | (needs improvement)2.83 | (good)40 | (good)0.000 | 2.12 | 2.87 | 157 | 3/3 | OK |
| baseline | / | Cloudflare | 96 | (good)0.91 | 0.35 | (needs improvement)2.78 | (good)9 | (good)0.000 | 1.57 | 2.82 | 200 | 3/3 | OK |
| baseline | /10145787 | Vercel | 99 | (good)0.76 | 0.34 | (good)2.18 | (good)25 | (good)0.000 | 1.00 | 2.18 | 200 | 3/3 | OK |
| baseline | /10145787 | Netlify | 98 | (good)0.91 | 1.39 | (good)2.33 | (good)15 | (good)0.000 | 2.81 | 2.34 | 222 | 3/3 | OK |
| baseline | /10145787 | Cloudflare | 99 | (good)0.76 | 0.70 | (good)2.25 | (good)52 | (good)0.000 | 1.64 | 2.25 | 469 | 3/3 | OK |
| optimized | / | Vercel | 95 | (good)0.92 | 1.37 | (needs improvement)2.78 | (good)9 | (good)0.000 | 2.71 | 2.81 | 217 | 3/3 | OK |
| optimized | / | Netlify | 93 | (good)1.09 | 1.37 | (needs improvement)3.08 | (good)66 | (good)0.000 | 3.22 | 3.11 | 389 | 3/3 | OK |
| optimized | / | Cloudflare | 94 | (good)0.93 | 1.54 | (needs improvement)2.93 | (good)13 | (good)0.000 | 2.76 | 2.96 | 154 | 3/3 | OK |
| optimized | /10145787 | Vercel | 99 | (good)0.92 | 0.29 | (good)2.25 | (good)36 | (good)0.000 | 1.07 | 2.25 | 151 | 3/3 | OK |
| optimized | /10145787 | Netlify | 95 | (good)1.08 | 2.43 | (good)2.48 | (good)37 | (good)0.000 | 4.15 | 2.48 | 365 | 3/3 | OK |
| optimized | /10145787 | Cloudflare | 98 | (good)0.93 | 1.09 | (good)2.25 | (good)62 | (good)0.000 | 2.31 | 2.25 | 668 | 3/3 | OK |