Shadowell
  1. Shadowell
  2. Policies
  3. Colophon, performance and how the toys work

ColophonBuild 2026.10 · Measured, not estimated

Colophon, performance and how the toys work

  • Engineering
  • Tooling
  • Transparency

What this page is made of, what it costs to load, and the exact formulae behind every simulation on it. Proof beats promises, so here are the numbers and the methodology to argue with them.

1. Construction

  • One HTML document for the home page, and a small self-contained page for every note, role and policy, generated from it. No framework, no runtime dependency, no third-party request of any kind at runtime, not even a font. Reasoning in why this website has zero dependencies.
  • Type: the operating system's UI face — SF Pro, Segoe UI Variable, or Roboto — plus the system monospace. Nothing is downloaded.
  • Layout: CSS grid with container queries, so components respond to their own width rather than the viewport. Colour in OKLCH where supported, with sRGB fallbacks, and one Display-P3 accent on high-dynamic-range screens.
  • Motion: native scroll-driven animations where the engine supports them, an IntersectionObserver fallback where it does not, and nothing at all under prefers-reduced-motion.
  • Graphics: six 2D canvases (hero, technology, telemetry, order book, globe, lab) plus inline SVG. All are paused when off-screen or when the tab is hidden, and all are disabled entirely under Save-Data or on very low-memory devices.
  • Offline: a service worker keeps a copy of the home page, and of each page you have read, so they open with no connection. The footer says so when it happens.

2. Build steps

Zero runtime dependencies is not zero tooling. Five steps before each deploy, all producing static output:

  1. Syntax highlighting. Code blocks are tokenised into spans ahead of time, so no highlighter ships to your browser.
  2. Pages. A short script writes each note, role and policy out at its own address, with its own title, description and structured data, plus the sitemap and the RSS feed. This file stays the only place anything is written.
  3. Share images. og.png, and a 1200×630 card for every page, drawn in the hero's style, so a shared link previews as the thing being shared.
  4. Versioned cache. The service worker's cache name is bumped on every deploy, and navigations are network-first anyway, so a deploy is never hidden behind a stale copy.
  5. Validation. Link check, structured-data check, and an axe accessibility pass. All three must be clean to deploy.

3. Performance

Page weight is measured from the deployed files. Web Vitals use Chrome's Lighthouse mobile preset, 4× CPU throttle, Slow 4G, cold cache, median of five runs against the production origin. Re-measured every deploy; a regression blocks the deploy.

MetricResultBudget
Requests, cold load3≤ 3
Third-party requests00
Transferred, compressed~148 kB< 150 kB
JavaScript, uncompressed~180 kB< 200 kB
A note, role or policy page, compressed12–16 kB< 25 kB
Cookies set00
Largest Contentful Paint—< 1.8 s
Interaction to Next Paint—< 100 ms
Cumulative Layout Shift—< 0.05
Total Blocking Time—< 200 ms

The three requests are the document, the web-app manifest and the service worker, all from this origin; a note, role or policy page needs two, the document and the manifest. A dash means not yet measured on the production origin: publishing a number we have not taken would be exactly the sin the rest of this site complains about. We also test by hand on a cheap Android handset over a congested mobile network, because synthetic throttling flatters everybody.

4. The strategy lab, exactly

A teaching model, not a research tool. Every term is deliberately simple and visible. In basis points per trade:

textimpact      = 0.022 · turnover^0.55 · (capital_£m / 10)^0.35 · regime.impact
adverse     = 0.28 · log10(1 + latency_µs / 10) · turnover^0.25 · regime.adverse
leverage    = clamp(vol_target_% / max(0.6, 0.9 · edge), 0.4, 9)
financing   = (rate_% / 100) · leverage / (252 · turnover) · 1e4
net_edge    = edge − spread − impact − adverse − financing

noise_bps   = 12 · max(edge, 0.2)^0.85 + 3          (per-trade dispersion)
breadth     = turnover^0.55 · 252                   (effective independent bets/yr)
sharpe      = net_edge / noise_bps · sqrt(breadth)

σ_daily     = (vol_target_% / 100) · regime.vol / sqrt(252)
μ_daily     = sharpe · σ_daily / sqrt(252)
r_t         = μ_daily + σ_daily · z_t · k_t
              z_t ~ N(0,1) via Box–Muller on mulberry32(seed)
              k_t = regime.tail_size with prob. regime.tail_p, else 1

Regimes: normal (impact ×1.0, adverse ×1.0, tails 2% of days at ×2.6), crisis (impact ×1.45, adverse ×1.6, tails 9% at ×3.4, vol ×1.7), low vol (impact ×0.85, adverse ×0.9, tails 0.5% at ×2.0, vol ×0.6, and the spread term is not reduced, which is the whole lesson).

Sortino replaces the denominator with downside deviation only, computed on the realised path. Every run uses 120 Monte-Carlo paths (48 on small or low-core devices) over 756 trading days, all from one seed. Slider values are rounded to the precision they display, so a shared link reproduces exactly what the sender saw. Dropped CSVs are parsed with the File API and never leave the browser; they are run through a 10/40-day moving-average crossover, costed at the current spread slider.

5. The other simulations

  • Order book. Clustered arrivals: base intensity plus a decaying excitation term after each trade, so activity begets activity. Cancellations are exponential in distance from the touch. Executions print to the tape. No venue data is used, licensed or implied.
  • Telemetry. Synthetic, but keyed to the real Europe/London clock: message rates and tick-to-trade widen around 08:00 (equity open) and 13:30 (US data), and fall away overnight and at weekends. It is a stylised model of load, not a recording.
  • Globe and latency. Great-circle distance from your selected point of presence, converted at the speed of light in fibre (c ÷ 1.4675 ≈ 204,000 km/s) for the theoretical floor, then multiplied by 1.25 for a plausible routed path. Real venue-to-venue figures depend on the carrier and the route and are not ours to publish.
  • Correlation matrix. Illustrative long-run figures between strategy families, chosen to make a teaching point about duplication. Not live measurements.
  • Session clock. Real. Local venue time and daylight saving come from Intl.DateTimeFormat; session hours are hard-coded indicative primary hours and exclude holidays and auctions.

6. Accessibility and privacy

Targets WCAG 2.2 AA; the detail and the known limitations are in the accessibility statement. Four keys in localStorage, no cookies, no analytics; see the cookie policy.

7. Corrections

If any number on this page is wrong, or you can reproduce a worse result than the ones published, tell us and we will fix the number or the site: hello@shadowell.com.