Skip to content

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.

Tied for rank 8 of 23 with TanStack Start (React), TanStack Start (Solid), Waku, Void (Svelte)17/28 points: 8/14 first-paint, 9/14 other · 61% complete
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

8/14
  • Manual, like 11 of the other 22 frameworks. 11 frameworks score higher.

    Show the how-to

    No first-party CSS inlining documented. Analog builds with Vite and its index.html links src/styles.css; Angular CLI's inlineCritical is an angular.json build option and is not listed among the analog() options. Inline by hand. (style-pipeline, migrating)

    Code example

    Analog has no inlining option, so inline the above-the-fold rules in index.html yourself 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-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-to

    Angular's NgOptimizedImage from @angular/common, a required dependency of every Analog app: ngSrc, priority, automatic srcset, 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 NgOptimizedImage from @angular/common and use ngSrc. Width and height are required, priority marks 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>

    Manual

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

    The NgOptimizedImage page 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 in public/ 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-to

    analog({ prerender: { routes } }) renders listed routes to static HTML at build time, static: true builds a server-less site, and prerendered server-side data is written as static files. Response headers are set with h3 setResponseHeader in middleware or API routes. No ISR or revalidate option documented. (static-site-generation, middleware)

    Code example

    List routes under prerender.routes to build them as static HTML. Set staticData: true on 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');
      }
    });

    Source: Analog: Static site generation, Analog: Middleware

  • 05Route prefetching1st-party2 pts

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

    Show the how-to

    Angular Router preloading: pass withPreloading(PreloadAllModules) to provideFileRouter(...), 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)),
        // …
      ],
    };

    Source: Analog: Routing, Angular: PreloadAllModules

  • 06Streaming SSRExperimental1 pt

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

    Show the how-to

    The streaming SSR page says it "is experimental and opt-in". Set analog({ experimental: { streaming: true } }) in the Vite config and export renderStream(AppComponent, config) from @analogjs/router/server in main.server.ts; it needs Angular 21+ and Vite 6+, and builds on incremental hydration (@defer blocks). The default SSR path stays buffered. (streaming-ssr)

    Code example

    Turn on the experimental flag and export renderStream from 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

  • Manual, like 15 of the other 22 frameworks. 7 frameworks score higher.

    Show the how-to

    No first-party preload Link headers or 103 Early Hints documented. Set a Link header by hand with h3 setResponseHeader in server middleware. (middleware)

    Code example

    Set a Link header by hand in server middleware. Files in src/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

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

    Show the how-to

    Angular incremental hydration: @defer (hydrate on viewport | idle | interaction | immediate) blocks, enabled with provideClientHydration(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 @defer with a hydrate trigger. 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

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

    Show the how-to

    SSR is the default; routeRules: { '/admin/**': { ssr: false } } in the Nitro config renders matching routes on the client only, and prerender.routes lists the routes built as static HTML. (server-side-rendering, static-site-generation)

    Code example

    Pages render on the server by default. routeRules in the Nitro plugin makes matching routes client-only, and prerender.routes builds 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

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

    Show the how-to

    Angular signals (signal, computed, resource); Analog's own injectServerFn returns an Angular resource that 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. injectServerFn returns 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

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

    Show 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-visualizer to the Vite config. vite build then 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

  • Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.

    Show the how-to

    No first-party script-loading primitive documented in the Analog docs. (server-side-rendering)

    Code example

    Write the loading strategy yourself: async in index.html for early scripts, or afterNextRender to 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

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

    Show 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 needs BUILD_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_PRESET at 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/public

    Source: Analog: Deployment providers

  • Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.

    Show 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 the ngsw.json asset 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 in index.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

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.

Analog: latest benchmark per build and page
BuildPathPerfFCPRaw FCPLCPTBTCLSSITTIDocHosts
Book list /
baseline/83(good)1.511.53(poor)4.36(good)40(good)0.0002.954.362343/3 Vercel, Netlify, Cloudflare
optimized/88(good)0.910.97(needs improvement)3.90(good)82(good)0.0011.903.901433/3 Vercel, Netlify, Cloudflare
Book page /10145787
baseline/1014578795(good)1.511.12(needs improvement)2.77(good)44(good)0.0002.352.772873/3 Vercel, Netlify, Cloudflare
optimized/1014578799(good)0.910.63(good)1.94(good)18(good)0.0001.582.261543/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.

Analog: latest benchmark per build, page and host
BuildPathHostPerfFCPRaw FCPLCPTBTCLSSITTIDocRunsStatus
Analog
baseline/Vercel84(good)1.511.28(poor)4.36(good)69(good)0.0002.414.361523/3OK
baseline/Netlify82(good)1.512.50(poor)4.36(good)0(good)0.0004.544.363423/3OK
baseline/Cloudflare84(good)1.510.81(poor)4.37(good)51(good)0.0001.914.372093/3OK
baseline/10145787Vercel94(good)1.511.32(needs improvement)2.79(good)95(good)0.0002.462.791543/3OK
baseline/10145787Netlify95(good)1.511.45(needs improvement)2.82(good)23(good)0.0002.892.823003/3OK
baseline/10145787Cloudflare96(good)1.510.59(needs improvement)2.71(good)15(good)0.0001.692.714073/3OK
optimized/Vercel87(good)0.911.30(poor)4.05(good)67(good)0.0002.194.051073/3OK
optimized/Netlify90(good)0.910.29(needs improvement)3.60(good)82(good)0.0031.283.601423/3OK
optimized/Cloudflare87(good)0.911.32(poor)4.06(good)97(good)0.0002.224.061793/3OK
optimized/10145787Vercel100(good)0.910.32(good)1.69(good)26(good)0.0001.132.211633/3OK
optimized/10145787Netlify97(good)0.921.29(good)2.45(good)0(good)0.0012.722.451573/3OK
optimized/10145787Cloudflare100(good)0.910.28(good)1.68(good)27(good)0.0000.912.131413/3OK