Analog
Analog scores 17 of 28 points. That is 8 of 14 on the 7 features that affect first paint (the moment the browser first draws content), and 9 of 14 on the 7 other features.
- Version checked
- @analogjs/platform 3.0.0 (npm latest on 2026-11-25; analogjs.org documents v3)
- Version notes
- The Books port (analog-books) runs it with Angular 22.3 and Nitro 2.14.
- Performance guide
- Static Site Generation | AnalogNo dedicated performance page; closest official page.
- Issues
- github.com/analogjs/analog/issues
Scorecard
All 14 features, in two groups. Each row shows Analog's label, how that label compares across all 23 frameworks, and how to enable the feature. Feature names link to Analog's entry on that feature's page.
Analog's labels across 14 features
- 1st-party7
- Experimental1
- Third-party2
- Manual4
- of 14
How it compares
On 7 of 14 features, no framework has a higher-scoring label than Analog. On the other 7, 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. Analog builds with Vite and its
index.htmllinkssrc/styles.css; Angular CLI'sinlineCriticalis anangular.jsonbuild option and is not listed among theanalog()options. Inline by hand. (style-pipeline, migrating)Code example
Analog has no inlining option, so inline the above-the-fold rules in
index.htmlyourself and load the full stylesheet without blocking render.<!-- index.html --> <head> <base href="/" /> <!-- hand-picked rules for the header and first row of cards --> <style> body { margin: 0; font-family: system-ui, sans-serif; } .site-header { height: 56px; display: flex; align-items: center; } </style> <!-- the rest loads async: applied once it arrives --> <link rel="stylesheet" href="/src/styles.css" media="print" onload="this.media='all'" /> <noscript><link rel="stylesheet" href="/src/styles.css" /></noscript> </head>Source: Analog: Migrating an Angular app
- 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 handling documented; the style pipeline guide covers stylesheet preprocessing only. The third-party route is Fontsource packages imported from the global stylesheet. (style-pipeline)
Code example
Install a Fontsource package and import it from the global stylesheet. Vite bundles the font files with hashed names and serves them from your own origin.
/* src/styles.css (npm install @fontsource-variable/open-sans) */ @import '@fontsource-variable/open-sans'; body { font-family: 'Open Sans Variable', sans-serif; }Source: Fontsource: Install
- 03Image pipeline1st-party2 pts
1st-party, like 8 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Angular's
NgOptimizedImagefrom@angular/common, a required dependency of every Analog app:ngSrc,priority, automaticsrcset, lazy loading, and loaders for Cloudflare, Cloudinary, ImageKit, Imgix and Netlify. It is an Angular-team package, and the Analog docs do not cover images. (image-optimization)Code example
Import
NgOptimizedImagefrom@angular/commonand usengSrc. Width and height are required,prioritymarks the LCP image, and a loader provider builds CDN URLs.// src/app/pages/index.page.ts import { Component } from '@angular/core'; import { NgOptimizedImage } from '@angular/common'; @Component({ imports: [NgOptimizedImage], template: ` <img ngSrc="covers/dune.jpg" width="400" height="600" priority /> <img ngSrc="covers/emma.jpg" ngSrcset="200w, 400w" sizes="50vw" width="400" height="600" /> `, }) export default class HomePage {} // src/app/app.config.ts // providers: [provideImgixLoader('https://books.imgix.net/'), /* … */]Source: Angular: Image optimization
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.
The
NgOptimizedImagepage says<picture>is not supported yet; hand-write the markup. (image-optimization)Example
NgOptimizedImage can't render
<picture>, so write the element in a page template with plain<source>tags. Files inpublic/are served from the site root.// src/app/pages/index.page.ts import { Component } from '@angular/core'; @Component({ selector: 'app-home', template: ` <picture> <!-- art direction: a square crop on narrow screens --> <source media="(max-width: 640px)" type="image/avif" srcset="/media/hero-square-640.avif" width="640" height="640" /> <source type="image/avif" sizes="100vw" srcset="/media/hero-1280.avif 1280w, /media/hero-1920.avif 1920w" /> <img src="/media/hero-1280.jpg" alt="Shelves of books" width="1280" height="720" fetchpriority="high" decoding="async" /> </picture> `, }) export default class HomePage {}Source: Angular image optimization FAQ
- 04Data/HTML caching1st-party2 pts
1st-party, like 16 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
analog({ prerender: { routes } })renders listed routes to static HTML at build time,static: truebuilds a server-less site, and prerendered server-side data is written as static files. Response headers are set with h3setResponseHeaderin middleware or API routes. No ISR or revalidate option documented. (static-site-generation, middleware)Code example
List routes under
prerender.routesto build them as static HTML. SetstaticData: trueon a route to write its server-side data to static files too. Dynamic responses get headers from server middleware.// vite.config.ts import analog from '@analogjs/platform'; import { defineConfig } from 'vite'; export default defineConfig(() => ({ plugins: [ analog({ prerender: { routes: async () => ['/', '/about', { route: '/books', staticData: true }], }, }), ], }));// src/server/middleware/cache.ts import { defineEventHandler, setResponseHeader } from 'h3'; export default defineEventHandler((event) => { if (event.path.startsWith('/books/')) { setResponseHeader(event, 'Cache-Control', 'public, s-maxage=60, stale-while-revalidate=300'); } }); - 05Route prefetching1st-party2 pts
1st-party, like 18 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Angular Router preloading: pass
withPreloading(PreloadAllModules)toprovideFileRouter(...), which accepts Angular router features, to preload lazy route chunks. The Analog docs show other router features there (withComponentInputBinding,withNavigationErrorHandler) and no preloading example. No link hover or viewport prefetch documented. (routing, PreloadAllModules)Code example
provideFileRouter()takes Angular router features.withPreloading(PreloadAllModules)loads every lazy page chunk after the app starts.// src/app/app.config.ts import { ApplicationConfig } from '@angular/core'; import { provideFileRouter } from '@analogjs/router'; import { PreloadAllModules, withComponentInputBinding, withPreloading } from '@angular/router'; export const appConfig: ApplicationConfig = { providers: [ provideFileRouter(withComponentInputBinding(), withPreloading(PreloadAllModules)), // … ], }; - 06Streaming SSRExperimental1 pt
Experimental, like 1 of the other 22 frameworks. 18 frameworks score higher.
Show the how-toHide the how-to
The streaming SSR page says it "is experimental and opt-in". Set
analog({ experimental: { streaming: true } })in the Vite config and exportrenderStream(AppComponent, config)from@analogjs/router/serverinmain.server.ts; it needs Angular 21+ and Vite 6+, and builds on incremental hydration (@deferblocks). The default SSR path stays buffered. (streaming-ssr)Code example
Turn on the experimental flag and export
renderStreamfrom the server entry. It needs Angular 21+ and Vite 6+.// vite.config.ts import analog from '@analogjs/platform'; import { defineConfig } from 'vite'; export default defineConfig({ plugins: [analog({ experimental: { streaming: true } })], }); // src/main.server.ts import { renderStream } from '@analogjs/router/server'; import { config } from './app/app.config.server'; import { AppComponent } from './app/app.component'; export default renderStream(AppComponent, config);Source: Analog: Streaming SSR
- 07Early Hints / preload headersManual0 pts
Manual, like 15 of the other 22 frameworks. 7 frameworks score higher.
Show the how-toHide the how-to
No first-party preload
Linkheaders or 103 Early Hints documented. Set aLinkheader by hand with h3setResponseHeaderin server middleware. (middleware)Code example
Set a
Linkheader by hand in server middleware. Files insrc/server/middleware/are registered automatically.// src/server/middleware/preload.ts import { defineEventHandler, setResponseHeader } from 'h3'; export default defineEventHandler((event) => { if (event.path.startsWith('/api')) return; setResponseHeader( event, 'Link', '<https://fonts.gstatic.com>; rel=preconnect; crossorigin, </media/hero-1280.avif>; rel=preload; as=image', ); });Source: Analog: Middleware
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
Angular incremental hydration:
@defer (hydrate on viewport | idle | interaction | immediate)blocks, enabled withprovideClientHydration(withIncrementalHydration())on Angular 21 and by default on Angular 22. Analog's streaming SSR page builds on it; streaming itself is experimental (experimental.streaming). (streaming-ssr, incremental-hydration)Code example
Enable incremental hydration, then wrap a part of the page in
@deferwith ahydratetrigger. It renders on the server and hydrates when it scrolls into view.// src/app/app.config.ts (Angular 21; on by default with provideClientHydration() from Angular 22) import { provideClientHydration, withIncrementalHydration } from '@angular/platform-browser'; // providers: [provideClientHydration(withIncrementalHydration()), /* … */] // src/app/pages/books/[id].page.ts import { Component, signal } from '@angular/core'; import { Reviews } from '../../reviews/reviews'; @Component({ imports: [Reviews], template: ` <h1>{{ title() }}</h1> @defer (hydrate on viewport) { <app-reviews /> } @placeholder { <div>Reviews</div> } `, }) export default class BookPage { protected title = signal('Dune'); }Source: Angular: Incremental hydration, Analog: Streaming SSR
- 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
SSR is the default;
routeRules: { '/admin/**': { ssr: false } }in the Nitro config renders matching routes on the client only, andprerender.routeslists the routes built as static HTML. (server-side-rendering, static-site-generation)Code example
Pages render on the server by default.
routeRulesin the Nitro plugin makes matching routes client-only, andprerender.routesbuilds the listed routes as static HTML.// vite.config.ts import analog from '@analogjs/platform'; import angular from '@analogjs/vite-plugin-angular'; import nitro from '@analogjs/vite-plugin-nitro'; import { defineConfig } from 'vite'; export default defineConfig(() => ({ plugins: [ analog({ prerender: { routes: ['/', '/about'] } }), // static HTML angular(), nitro({ routeRules: { '/admin/**': { ssr: false }, // client-only }, }), ], }));Source: Analog: Server-side rendering
- 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
Angular signals (
signal,computed,resource); Analog's owninjectServerFnreturns an Angularresourcethat refetches when a signal it reads changes. Zoneless change detection is the default from Angular 21. (server-functions, signals)Code example
A signal holds the search text.
injectServerFnreturns an Angular resource that refetches when a signal read in its args factory changes.// src/app/pages/search.page.ts import { Component, computed, signal } from '@angular/core'; import { injectServerFn } from '@analogjs/router'; import { searchBooks } from '../server-fns/books.server'; @Component({ template: ` <input [value]="query()" (input)="query.set($any($event.target).value)" /> <p>{{ count() }} results</p> @for (book of books.value() ?? []; track book.id) { <p>{{ book.title }}</p> } `, }) export default class SearchPage { query = signal(''); protected books = injectServerFn(searchBooks, () => ({ q: this.query() })); count = computed(() => this.books.value()?.length ?? 0); }Source: Analog: Server functions, Angular: Signals
- 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; Analog builds with Vite, so the third-party route is a community visualizer such as rollup-plugin-visualizer. (deployment)
Code example
Add
rollup-plugin-visualizerto the Vite config.vite buildthen writes a treemap of the client bundle.// vite.config.ts (npm install -D rollup-plugin-visualizer) import analog from '@analogjs/platform'; import { visualizer } from 'rollup-plugin-visualizer'; import { defineConfig } from 'vite'; export default defineConfig(() => ({ plugins: [ analog(), visualizer({ filename: 'stats.html', gzipSize: true, template: 'treemap' }), ], }));Source: rollup-plugin-visualizer
- 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 primitive documented in the Analog docs. (server-side-rendering)
Code example
Write the loading strategy yourself:
asyncinindex.htmlfor early scripts, orafterNextRenderto inject one in the browser after the first render.// index.html: loads in parallel, runs as soon as it arrives // <script async src="https://plausible.io/js/script.js" data-domain="books.example"></script> // src/app/app.component.ts: load a chat widget only in the browser import { Component, afterNextRender } from '@angular/core'; import { RouterOutlet } from '@angular/router'; @Component({ selector: 'app-root', imports: [RouterOutlet], template: '<router-outlet />' }) export class AppComponent { constructor() { afterNextRender(() => { const s = document.createElement('script'); s.src = 'https://widget.example.com/chat.js'; s.async = true; document.body.append(s); }); } }Source: Angular: afterNextRender
- 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 presets ship inside Analog's own
@analogjs/vite-plugin-nitro. Node is the default output, Vercel and Netlify deploy "with no additional configuration", and Cloudflare Pages needsBUILD_PRESET=cloudflare-pages. (deployment, providers, vite-plugin-nitro)Code example
Analog builds a Node server by default. Pick another Nitro preset in the Nitro plugin, or with
BUILD_PRESETat build time.// vite.config.ts import analog from '@analogjs/platform'; import angular from '@analogjs/vite-plugin-angular'; import nitro from '@analogjs/vite-plugin-nitro'; import { defineConfig } from 'vite'; export default defineConfig(() => ({ plugins: [analog(), angular(), nitro({ preset: 'vercel' })], }));# Node (default): node dist/analog/server/index.mjs BUILD_PRESET=cloudflare-pages npm run build npx wrangler pages dev ./dist/analog/publicSource: Analog: Deployment providers
- 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 Analog docs. Angular's
ng add @angular/pwa"enables service worker build support in the CLI", and Analog replaces the Angular CLI build with Vite, so thengsw.jsonasset manifest is not generated for you. Hand-write the worker and register it. (angular service workers, migrating)Code example
Put a hand-written worker in
public/and register it with an inline script inindex.html.// public/sw.js const CACHE = 'books-v1'; // change the name on each deploy self.addEventListener('activate', (event) => { event.waitUntil( caches.keys().then((keys) => Promise.all(keys.filter((k) => k !== CACHE).map((k) => caches.delete(k)))), ); }); self.addEventListener('fetch', (event) => { const { request } = event; if (request.method !== 'GET' || new URL(request.url).origin !== location.origin) return; // Network first, so pages stay current. The cached copy answers when offline. event.respondWith( fetch(request) .then((response) => { const copy = response.clone(); caches.open(CACHE).then((cache) => cache.put(request, copy)); return response; }) .catch(() => caches.match(request)), ); });<!-- index.html, before </head> --> <script> if ('serviceWorker' in navigator) { addEventListener('load', () => navigator.serviceWorker.register('/sw.js')); } </script>Source: Using Service Workers (MDN)
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
- analog-books
- Repository
- github.com/MaxwellCohen/analog-books
Branch
main
baseline
- Vercel
- analog-books.vercel.app
- Netlify
- analog-books.netlify.app
- Cloudflare
- analog-books.to-email-max.workers.dev
Branch
optimized
Nitro route rules + cached functions + NgOptimizedImage + preloading + fonts
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.51 | 1.53 | (poor)4.36 | (good)40 | (good)0.000 | 2.95 | 4.36 | 234 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | / | 88 | (good)0.91 | 0.97 | (needs improvement)3.90 | (good)82 | (good)0.001 | 1.90 | 3.90 | 143 | 3/3 Vercel, Netlify, Cloudflare |
| Book page /10145787 | |||||||||||
| baseline | /10145787 | 95 | (good)1.51 | 1.12 | (needs improvement)2.77 | (good)44 | (good)0.000 | 2.35 | 2.77 | 287 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | /10145787 | 99 | (good)0.91 | 0.63 | (good)1.94 | (good)18 | (good)0.000 | 1.58 | 2.26 | 154 | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Analog | |||||||||||||
| baseline | / | Vercel | 84 | (good)1.51 | 1.28 | (poor)4.36 | (good)69 | (good)0.000 | 2.41 | 4.36 | 152 | 3/3 | OK |
| baseline | / | Netlify | 82 | (good)1.51 | 2.50 | (poor)4.36 | (good)0 | (good)0.000 | 4.54 | 4.36 | 342 | 3/3 | OK |
| baseline | / | Cloudflare | 84 | (good)1.51 | 0.81 | (poor)4.37 | (good)51 | (good)0.000 | 1.91 | 4.37 | 209 | 3/3 | OK |
| baseline | /10145787 | Vercel | 94 | (good)1.51 | 1.32 | (needs improvement)2.79 | (good)95 | (good)0.000 | 2.46 | 2.79 | 154 | 3/3 | OK |
| baseline | /10145787 | Netlify | 95 | (good)1.51 | 1.45 | (needs improvement)2.82 | (good)23 | (good)0.000 | 2.89 | 2.82 | 300 | 3/3 | OK |
| baseline | /10145787 | Cloudflare | 96 | (good)1.51 | 0.59 | (needs improvement)2.71 | (good)15 | (good)0.000 | 1.69 | 2.71 | 407 | 3/3 | OK |
| optimized | / | Vercel | 87 | (good)0.91 | 1.30 | (poor)4.05 | (good)67 | (good)0.000 | 2.19 | 4.05 | 107 | 3/3 | OK |
| optimized | / | Netlify | 90 | (good)0.91 | 0.29 | (needs improvement)3.60 | (good)82 | (good)0.003 | 1.28 | 3.60 | 142 | 3/3 | OK |
| optimized | / | Cloudflare | 87 | (good)0.91 | 1.32 | (poor)4.06 | (good)97 | (good)0.000 | 2.22 | 4.06 | 179 | 3/3 | OK |
| optimized | /10145787 | Vercel | 100 | (good)0.91 | 0.32 | (good)1.69 | (good)26 | (good)0.000 | 1.13 | 2.21 | 163 | 3/3 | OK |
| optimized | /10145787 | Netlify | 97 | (good)0.92 | 1.29 | (good)2.45 | (good)0 | (good)0.001 | 2.72 | 2.45 | 157 | 3/3 | OK |
| optimized | /10145787 | Cloudflare | 100 | (good)0.91 | 0.28 | (good)1.68 | (good)27 | (good)0.000 | 0.91 | 2.13 | 141 | 3/3 | OK |