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.
- 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
- 01Production CSS inliningManual0 pts
Manual, like 11 of the other 22 frameworks. 11 frameworks score higher.
Show the how-toHide the how-to
Nothing to enable. The Vite guide covers build setup only; no first-party inlining is documented;
index.htmllinks/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-toHide the how-to
Import the font from Fontsource on
optimized;mainloads Geist fromfonts.googleapis.comwithpreconnectanddisplay=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(optimizedbranch). - 03Image pipelineThird-party1 pt
Third-party, like 13 of the other 22 frameworks. 9 frameworks score higher.
Show the how-toHide the how-to
No first-party image support is documented (the Vite guide covers build setup only). The community
@responsive-image/emberaddon with@responsive-image/vite-plugincovers build-time resizing,srcset, and AVIF/WebP for Embroider + Vite apps; this port does not use it and renders a plain<img>with nosrcsetorsizes.Code example
Add the
@responsive-image/vite-pluginto the Embroider Vite config. An import ending in?responsiveis resized at build time, and the<ResponsiveImage>component from@responsive-image/emberrenders thesrcset.// 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>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 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> - 04Data/HTML cachingManual0 pts
Manual, like 4 of the other 22 frameworks. 18 frameworks score higher.
Show the how-toHide the how-to
On
optimized,server/catalog-cache.jspluspublic/_headers(the header for the static SPA shell that the Netlify and Cloudflare deploys serve);mainhas neither. Where this port server-renders (the Node server and the Vercel function; the Netlify and Cloudflare deploys serve the un-renderedindex.htmlshell plus API functions), SSR comes fromvite-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-revalidateFrom this repo's
ember-books/public/_headers(optimizedbranch; the/index.htmlrule omitted). - 05Route prefetchingManual0 pts
Manual, like 2 of the other 22 frameworks. 20 frameworks score higher.
Show the how-toHide 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-modifierthat starts the book request on hover or focus and caches the promise. The route'smodelhook 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-toHide the how-to
No streaming render is documented. The FastBoot user guide and the community
vite-ember-ssrlayer this port uses both render the whole page and then send it.Code example
Return a
ReadableStreamfrom 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
- 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 headers or Early Hints are documented in the FastBoot user guide or in
vite-ember-ssr. Set aLinkheader in the Node server that wraps the renderer, or at the host.Code example
Set a
Linkheader 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
- 08Islands / partial hydration / lazy slicesManual0 pts
Manual, like 2 of the other 22 frameworks. 20 frameworks score higher.
Show the how-toHide the how-to
Nothing to enable: no first-party partial hydration is documented; SSR is app-wide (community
vite-ember-ssrhere; official FastBoot).Code example
Serve the page with a small entry instead of
app/entry.js. Then mount each interactive component into its placeholder withrenderComponentfrom@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
- 09Per-route render modesManual0 pts
Manual, like 3 of the other 22 frameworks. 19 frameworks score higher.
Show the how-toHide the how-to
SSR is app-wide in this port (
emberSsr()from communityvite-ember-ssr; official FastBoot is also app-wide).vite-ember-ssrcan additionally prerender a listed set of routes at build time (emberSsg({ routes })), a community build step (React Router's equivalent first-partyprerenderlist 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, }); } - 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
@trackedautotracking.export default class SidebarService extends Service { @tracked isOpen = false; }From this repo's
ember-books/app/services/sidebar.js(optimizedbranch; methods omitted). - 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
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 aroundrollup-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.htmlSource: Embroider: Analyzing Bundles
- 12Third-party script strategiesManual0 pts
Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.
Show the how-toHide the how-to
The Vite guide covers build setup only and no first-party script primitive is documented; use a script tag in
index.htmlor an addon.Code example
There is no script component, so put the loading strategy in
index.html. This one waits for theloadevent and an idle moment before it injects the tag, like Next'slazyOnload.<!-- 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> - 13Portable multi-host deploymentManual0 pts
Manual, like 8 of the other 22 frameworks. 14 frameworks score higher.
Show the how-toHide the how-to
Embroider/Vite (guide) plus a community SSR layer (
vite-ember-ssrhere; 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.jsonrewrites everything to/api). Cloudflare runs a Worker that serves the API and the static SPA shell. Netlify usesnetlify.tomlredirects plusnetlify/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) }, }; - 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 first-party service worker is documented in the Ember guides. The community
ember-service-workeraddon 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 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
- ember-books
- Repository
- github.com/MaxwellCohen/ember-books
Branch
main
vibe port
- Vercel
- ember-books.vercel.app
- Netlify
- ember-books.netlify.app
- Cloudflare
- ember-books.to-email-max.workers.dev
Branch
optimized
cache + 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 | / | 85 | (good)1.51 | 0.94 | (poor)4.21 | (good)106 | (good)0.001 | 1.97 | 4.21 | 106 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | / | 90 | (good)1.08 | 0.85 | (needs improvement)3.56 | (good)78 | (good)0.000 | 1.80 | 3.56 | 148 | 3/3 Vercel, Netlify, Cloudflare |
| Book page /10145787 | |||||||||||
| baseline | /10145787 | 96 | (good)1.52 | 0.47 | (needs improvement)2.63 | (good)28 | (good)0.000 | 1.52 | 2.67 | 101 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | /10145787 | 99 | (good)0.78 | 0.51 | (good)2.07 | (good)21 | (good)0.000 | 1.05 | 2.25 | 174 | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ember | |||||||||||||
| baseline | / | Vercel | 90 | (good)1.51 | 1.31 | (needs improvement)3.61 | (good)55 | (good)0.000 | 2.45 | 3.61 | 173 | 3/3 | OK |
| baseline | / | Netlify | 82 | (good)1.51 | 0.80 | (poor)4.50 | (good)163 | (good)0.003 | 1.77 | 4.50 | 72 | 3/3 | OK |
| baseline | / | Cloudflare | 83 | (good)1.51 | 0.72 | (poor)4.50 | (good)99 | (good)0.000 | 1.70 | 4.50 | 72 | 3/3 | OK |
| baseline | /10145787 | Vercel | 97 | (good)1.54 | 0.31 | (good)2.47 | (good)14 | (good)0.000 | 1.54 | 2.58 | 157 | 3/3 | OK |
| baseline | /10145787 | Netlify | 96 | (good)1.51 | 0.59 | (needs improvement)2.71 | (good)28 | (good)0.001 | 1.51 | 2.71 | 120 | 3/3 | OK |
| baseline | /10145787 | Cloudflare | 96 | (good)1.51 | 0.51 | (needs improvement)2.71 | (good)41 | (good)0.000 | 1.51 | 2.71 | 26 | 3/3 | OK |
| optimized | / | Vercel | 93 | (good)0.93 | 1.47 | (needs improvement)3.00 | (good)71 | (good)0.000 | 2.44 | 3.00 | 279 | 3/3 | OK |
| optimized | / | Netlify | 89 | (good)0.79 | 0.57 | (needs improvement)3.78 | (good)69 | (good)0.001 | 1.42 | 3.78 | 125 | 3/3 | OK |
| optimized | / | Cloudflare | 87 | (good)1.53 | 0.52 | (needs improvement)3.91 | (good)94 | (good)0.000 | 1.53 | 3.91 | 41 | 3/3 | OK |
| optimized | /10145787 | Vercel | 100 | (good)0.77 | 0.32 | (good)1.84 | (good)14 | (good)0.000 | 0.78 | 2.27 | 222 | 3/3 | OK |
| optimized | /10145787 | Netlify | 99 | (good)0.79 | 0.58 | (good)2.19 | (good)22 | (good)0.001 | 1.15 | 2.24 | 145 | 3/3 | OK |
| optimized | /10145787 | Cloudflare | 99 | (good)0.76 | 0.64 | (good)2.17 | (good)28 | (good)0.000 | 1.22 | 2.24 | 156 | 3/3 | OK |