Skip to content

Ember

Ember scores 5 of 28 points. That is 2 of 14 on the 7 features that affect first paint (the moment the browser first draws content), and 3 of 14 on the 7 other features.

Rank 23 of 235/28 points: 2/14 first-paint, 3/14 other · 18% complete
Version checked
ember-source ~7.2.0 (latest 7.4.1; the linked /release guides are v7.3), vite-ember-ssr ^0.4.1 (latest 0.7.0)
Version notes
Embroider/Vite + vite-ember-ssr, not FastBoot
Performance guide
Rendering Performance - Ember Inspector - Ember GuidesNo general performance guide in current Ember Guides; closest official page.
Issues
github.com/emberjs/ember.js/issues

Scorecard

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

Ember's labels across 14 features

  • 1st-party1
  • Experimental0
  • Third-party3
  • Manual10
  • of 14

How it compares

On 1 of 14 features, no framework has a higher-scoring label than Ember. On the other 13, at least one does.

Tested in our port

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

First-paint levers

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

    Show the how-to

    Nothing to enable. The Vite guide covers build setup only; no first-party inlining is documented; index.html links /app/styles/app.css, and the optimized branch does not change that.

    Code example

    The port's build step already rewrites the HTML template. Extend it to swap the built stylesheet <link> for a <style> tag. The Node, Vercel, Netlify and Cloudflare deploys all use that template, so they all get the inlined CSS.

    // scripts/prepare-server-template.mjs
    import { mkdir, readFile, rm, writeFile } from 'node:fs/promises';
    import { resolve } from 'node:path';
    
    const root = process.cwd();
    const clientIndex = resolve(root, 'dist/client/index.html');
    const serverTemplate = resolve(root, 'dist/server/template.html');
    
    let html = await readFile(clientIndex, 'utf8');
    const link = html.match(/<link[^>]+href="(\/assets\/[^"]+\.css)"[^>]*>/);
    if (link) {
      const css = await readFile(resolve(root, 'dist/client', link[1].slice(1)), 'utf8');
      html = html.replace(link[0], `<style>${css}</style>`);
    }
    
    await mkdir(resolve(root, 'dist/server'), { recursive: true });
    await writeFile(serverTemplate, html);
    await rm(clientIndex);
  • 02Font optimizationThird-party1 pt

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

    Show the how-to

    Import the font from Fontsource on optimized; main loads Geist from fonts.googleapis.com with preconnect and display=swap. No first-party font module is documented (the Vite guide covers build setup only).

    @import "@fontsource-variable/geist";

    From this repo's ember-books/app/styles/app.css (optimized branch).

  • 03Image pipelineThird-party1 pt

    Third-party, like 13 of the other 22 frameworks. 9 frameworks score higher.

    Show the how-to

    No first-party image support is documented (the Vite guide covers build setup only). The community @responsive-image/ember addon with @responsive-image/vite-plugin covers build-time resizing, srcset, and AVIF/WebP for Embroider + Vite apps; this port does not use it and renders a plain <img> with no srcset or sizes.

    Code example

    Add the @responsive-image/vite-plugin to the Embroider Vite config. An import ending in ?responsive is resized at build time, and the <ResponsiveImage> component from @responsive-image/ember renders the srcset.

    // vite.config.mjs
    import { defineConfig } from 'vite';
    import { extensions, ember } from '@embroider/vite';
    import { babel } from '@rollup/plugin-babel';
    import { responsiveImage } from '@responsive-image/vite-plugin';
    
    export default defineConfig({
      plugins: [ember(), babel({ babelHelpers: 'runtime', extensions }), responsiveImage()],
    });
    // app/components/home/hero.gjs
    import { ResponsiveImage } from '@responsive-image/ember';
    import heroImage from './hero.jpg?w=640;1280;1920&responsive';
    
    <template>
      <ResponsiveImage @src={{heroImage}} @size={{100}} alt="Shelves of books" />
    </template>

    Source: responsive-image: Image component

    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 Vite guide covers build setup only; no first-party support is documented; use a plain <img>.

    Example

    Replace the <img> in the port's cover component with a hand-written <picture>. Wide screens get Goodreads' large cover, and narrow screens keep the medium one.

    // app/components/book/book-cover.gjs
    import { EMPTY_IMAGE_URL, getLargeBookImageUrl } from '../../lib/book/book-constants';
    // …
      get small() {
        return this.args.src ?? EMPTY_IMAGE_URL;
      }
    
      get large() {
        return getLargeBookImageUrl(this.small);
      }
    
      <template>
        <picture>
          <source media="(min-width: 768px)" srcset={{this.large}} />
          <img
            alt={{@title}}
            class="absolute inset-0 size-full object-cover"
            decoding="async"
            loading={{this.loading}}
            src={{this.small}}
            {{on "error" this.onError}}
          />
        </picture>
      </template>
  • Manual, like 4 of the other 22 frameworks. 18 frameworks score higher.

    Show the how-to

    On optimized, server/catalog-cache.js plus public/_headers (the header for the static SPA shell that the Netlify and Cloudflare deploys serve); main has neither. Where this port server-renders (the Node server and the Vercel function; the Netlify and Cloudflare deploys serve the un-rendered index.html shell plus API functions), SSR comes from vite-ember-ssr, a community, experimental package (not official; FastBoot is the official SSR path), which provides no data cache. WarpDrive/EmberData ships a first-party client request cache with expiry policies (CachePolicy / DefaultCachePolicy; repo), but no server, HTML, or edge caching; this port does not use it.

    /
      Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate

    From this repo's ember-books/public/_headers (optimized branch; the /index.html rule omitted).

  • Manual, like 2 of the other 22 frameworks. 20 frameworks score higher.

    Show the how-to

    Nothing to enable, and no first-party prefetch is documented: the linking-between-routes guide describes <LinkTo> without prefetching; you wire it yourself with a custom modifier or service.

    Code example

    Write an ember-modifier that starts the book request on hover or focus and caches the promise. The route's model hook then reads the same cached promise. <LinkTo> passes the modifier through to its <a>.

    // app/lib/book/load-catalog.js
    const bookCache = new Map();
    export function prefetchBook(id, searchParams) {
      const key = `${id}?${stringifySearchParams(searchParams)}`;
      if (!bookCache.has(key)) bookCache.set(key, loadBook(id, searchParams));
      return bookCache.get(key);
    }
    
    // app/modifiers/prefetch-book.js
    import { modifier } from 'ember-modifier';
    import { prefetchBook } from '../lib/book/load-catalog';
    
    export default modifier((element, [id, searchParams]) => {
      const warm = () => prefetchBook(id, searchParams);
      element.addEventListener('pointerenter', warm, { once: true });
      element.addEventListener('focus', warm, { once: true });
      return () => {
        element.removeEventListener('pointerenter', warm);
        element.removeEventListener('focus', warm);
      };
    });
    
    // app/routes/book.js: model(params) { return prefetchBook(params.id, parseSearchParams(params)); }
    // app/components/book/book-card.gjs
    <LinkTo @route="book" @model={{this.bookId}} @query={{this.query}}
            {{prefetchBook this.bookId @searchParams}}>
      {{! … }}
    </LinkTo>
  • 06Streaming SSRManual0 pts

    Manual, like 2 of the other 22 frameworks. 20 frameworks score higher.

    Show the how-to

    No streaming render is documented. The FastBoot user guide and the community vite-ember-ssr layer this port uses both render the whole page and then send it.

    Code example

    Return a ReadableStream from the request handler. It sends the top of the HTML template right away, then waits for the Ember render and sends the rest. The status code is fixed at 200 once the first chunk is out.

    // server/handle-request.js
    import { assembleHTML } from 'vite-ember-ssr/server';
    
    const HEAD_MARKER = '<!-- VITE_EMBER_SSR_HEAD -->';
    // … in handleFetch, for page requests
    const template = await getTemplate();
    const early = template.slice(0, template.indexOf(HEAD_MARKER));
    const encoder = new TextEncoder();
    
    const body = new ReadableStream({
      async start(controller) {
        controller.enqueue(encoder.encode(early)); // charset, viewport, favicon
        const emberApp = await getEmberApp();
        const rendered = await emberApp.renderRoute(`${url.pathname}${url.search}`, { settledTimeout: 8000 });
        controller.enqueue(encoder.encode(assembleHTML(template, rendered).slice(early.length)));
        controller.close();
      },
    });
    return new Response(body, { headers: { 'content-type': 'text/html; charset=utf-8' } });

    Source: vite-ember-ssr · MDN: ReadableStream

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

    Show the how-to

    No first-party preload headers or Early Hints are documented in the FastBoot user guide or in vite-ember-ssr. Set a Link header in the Node server that wraps the renderer, or at the host.

    Code example

    Set a Link header on the Fastify reply that sends the rendered page. This one preconnects to the font host. To preload a built file with a hashed name, read its URL from the Vite manifest.

    // server.js
    const LINK = '<https://fonts.gstatic.com>; rel=preconnect; crossorigin';
    // … in the handler that sends the SSR result
    const { html } = await renderHtml(emberApp, request.url, template);
    return reply.header('Link', LINK).type('text/html').send(html);

    Source: Fastify Reply: .header()

Other features

3/14
  • Manual, like 2 of the other 22 frameworks. 20 frameworks score higher.

    Show the how-to

    Nothing to enable: no first-party partial hydration is documented; SSR is app-wide (community vite-ember-ssr here; official FastBoot).

    Code example

    Serve the page with a small entry instead of app/entry.js. Then mount each interactive component into its placeholder with renderComponent from @ember/renderer. The rest of the page stays static HTML.

    // app/islands.js (the only <script type="module"> on a static page)
    import { renderComponent } from '@ember/renderer';
    import FavoriteButton from './components/islands/favorite-button';
    
    const islands = { 'favorite-button': FavoriteButton };
    
    for (const el of document.querySelectorAll('[data-island]')) {
      const args = JSON.parse(el.dataset.args ?? '{}');
      el.replaceChildren(); // no hydration: drop the server markup, then render fresh
      renderComponent(islands[el.dataset.island], { into: el, args });
    }
    
    // app/components/islands/favorite-button.gjs
    import Component from '@glimmer/component';
    import { tracked } from '@glimmer/tracking';
    import { on } from '@ember/modifier';
    
    export default class FavoriteButton extends Component {
      @tracked saved = false;
      toggle = () => (this.saved = !this.saved);
      <template>
        <button type="button" {{on "click" this.toggle}}>
          {{if this.saved "Saved" "Save"}} {{@title}}
        </button>
      </template>
    }

    Source: RFC 1099: renderComponent

  • Manual, like 3 of the other 22 frameworks. 19 frameworks score higher.

    Show the how-to

    SSR is app-wide in this port (emberSsr() from community vite-ember-ssr; official FastBoot is also app-wide). vite-ember-ssr can additionally prerender a listed set of routes at build time (emberSsg({ routes })), a community build step (React Router's equivalent first-party prerender list is what earns its ✅); no first-party per-route render mode is documented, so nothing to enable.

    Code example

    Choose the mode per path in the port's request handler. Server-render the routes that need it. For the rest, return the unrendered template: the same SPA shell the port's Netlify and Cloudflare deploys serve.

    // server/handle-request.js
    const CLIENT_ONLY = [/^\/account(\/|$)/]; // example: routes that skip SSR
    
    export async function handleFetch(request, options = {}) {
      const url = new URL(request.url);
      // … /api/* handlers from the port …
    
      const template = await getTemplate();
      if (CLIENT_ONLY.some((re) => re.test(url.pathname))) {
        // SPA shell: app/entry.js boots the app in the browser
        return new Response(template, {
          headers: { 'content-type': 'text/html; charset=utf-8' },
        });
      }
    
      const emberApp = await getEmberApp();
      const rendered = await emberApp.renderRoute(`${url.pathname}${url.search}`, {
        settledTimeout: 8000,
      });
      return new Response(assembleHTML(template, rendered), {
        headers: { 'content-type': 'text/html; charset=utf-8' },
        status: rendered.statusCode,
      });
    }
  • 1st-party, like 21 of the other 22 frameworks. None scores higher.

    Show the how-to

    @tracked autotracking.

    export default class SidebarService extends Service {
      @tracked isOpen = false;
    }

    From this repo's ember-books/app/services/sidebar.js (optimized branch; methods omitted).

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

    Show the how-to

    Embroider's Analyzing Bundles page says no Ember-specific analysis tooling is provided and points to Vite's performance guide and the community vite-bundle-visualizer (a CLI over rollup-plugin-visualizer); not configured here. ember-cli-bundle-analyzer covers classic and webpack builds.

    Code example

    Embroider points to the community vite-bundle-visualizer, a CLI wrapper around rollup-plugin-visualizer. It builds with the app's Vite config and writes a treemap.

    # in the app root; Ember's config file is vite.config.mjs
    npx vite-bundle-visualizer -c vite.config.mjs -o stats.html

    Source: Embroider: Analyzing Bundles

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

    Show the how-to

    The Vite guide covers build setup only and no first-party script primitive is documented; use a script tag in index.html or an addon.

    Code example

    There is no script component, so put the loading strategy in index.html. This one waits for the load event and an idle moment before it injects the tag, like Next's lazyOnload.

    <!-- index.html -->
    <head>
      <!-- … -->
      <script>
        addEventListener('load', function () {
          (window.requestIdleCallback || setTimeout)(function () {
            var s = document.createElement('script');
            s.src = 'https://example-analytics.com/script.js';
            s.async = true;
            document.head.appendChild(s);
          });
        });
      </script>
    </head>
  • Manual, like 8 of the other 22 frameworks. 14 frameworks score higher.

    Show the how-to

    Embroider/Vite (guide) plus a community SSR layer (vite-ember-ssr here; in this port only the Node server and the Vercel function server-render, while the Netlify and Cloudflare deploys serve a static SPA shell plus API functions). Official FastBoot 6.0.0 documents Ember CLI builds only; Vite-app support is an open draft PR. No first-party host adapters are documented (FastBoot's deploy page covers a Node app server plus Heroku- and community-maintained AWS integrations, not Vercel, Netlify, or Cloudflare), so nothing to enable.

    Code example

    From the port: each host gets its own entry file and config, written by hand. Vercel runs the SSR handler as a function (vercel.json rewrites everything to /api). Cloudflare runs a Worker that serves the API and the static SPA shell. Netlify uses netlify.toml redirects plus netlify/functions/api.mjs.

    // api/index.js (Vercel: SSR + API)
    import '../server/load-env.js';
    import { handleNodeRequest } from '../server/handle-request.js';
    export default handleNodeRequest;
    
    // workers/index.mjs (Cloudflare: API only, assets from dist/client)
    import { bookPayload, catalogPayload, searchParamsFromUrl } from '../server/catalog-api.js';
    
    export default {
      async fetch(request, env) {
        if (env?.POSTGRES_URL) process.env.POSTGRES_URL = env.POSTGRES_URL;
        const url = new URL(request.url);
        if (url.pathname === '/api/catalog') {
          return Response.json(await catalogPayload(searchParamsFromUrl(url.href)));
        }
        // … /api/books/:id …
        return env.ASSETS.fetch(request); // SPA shell (not_found_handling: single-page-application)
      },
    };
  • Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.

    Show the how-to

    No first-party service worker is documented in the Ember guides. The community ember-service-worker addon was last published in 2020 (9.0.1) and plugs into the classic Ember CLI build, which this Vite port does not use.

    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.

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.

Ember: latest benchmark per build and page
BuildPathPerfFCPRaw FCPLCPTBTCLSSITTIDocHosts
Book list /
baseline/85(good)1.510.94(poor)4.21(good)106(good)0.0011.974.211063/3 Vercel, Netlify, Cloudflare
optimized/90(good)1.080.85(needs improvement)3.56(good)78(good)0.0001.803.561483/3 Vercel, Netlify, Cloudflare
Book page /10145787
baseline/1014578796(good)1.520.47(needs improvement)2.63(good)28(good)0.0001.522.671013/3 Vercel, Netlify, Cloudflare
optimized/1014578799(good)0.780.51(good)2.07(good)21(good)0.0001.052.251743/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.

Ember: latest benchmark per build, page and host
BuildPathHostPerfFCPRaw FCPLCPTBTCLSSITTIDocRunsStatus
Ember
baseline/Vercel90(good)1.511.31(needs improvement)3.61(good)55(good)0.0002.453.611733/3OK
baseline/Netlify82(good)1.510.80(poor)4.50(good)163(good)0.0031.774.50723/3OK
baseline/Cloudflare83(good)1.510.72(poor)4.50(good)99(good)0.0001.704.50723/3OK
baseline/10145787Vercel97(good)1.540.31(good)2.47(good)14(good)0.0001.542.581573/3OK
baseline/10145787Netlify96(good)1.510.59(needs improvement)2.71(good)28(good)0.0011.512.711203/3OK
baseline/10145787Cloudflare96(good)1.510.51(needs improvement)2.71(good)41(good)0.0001.512.71263/3OK
optimized/Vercel93(good)0.931.47(needs improvement)3.00(good)71(good)0.0002.443.002793/3OK
optimized/Netlify89(good)0.790.57(needs improvement)3.78(good)69(good)0.0011.423.781253/3OK
optimized/Cloudflare87(good)1.530.52(needs improvement)3.91(good)94(good)0.0001.533.91413/3OK
optimized/10145787Vercel100(good)0.770.32(good)1.84(good)14(good)0.0000.782.272223/3OK
optimized/10145787Netlify99(good)0.790.58(good)2.19(good)22(good)0.0011.152.241453/3OK
optimized/10145787Cloudflare99(good)0.760.64(good)2.17(good)28(good)0.0001.222.241563/3OK