# Signed-in first content measured, startup JS budgeted, and gradual deployments documented

Signed-in /dashboard and /todos now have a repeatable Slow-4G and unthrottled baseline, every web build enforces a startup-JavaScript budget, and the deploy guide documents Workers gradual deployments.

- **Signed-in first-content measurement.** `scripts/measure-first-paint.mjs` now accepts `--signup` (signs up a throwaway user through `/signup` and reuses its session cookies), `--seed-todos`, `--profile slow-4g,unthrottled` and `--content-selector`, and reports `firstContentMs` alongside `contentInSsr`. On the local built Worker (median of 3), both `/dashboard` and `/todos` embed their primary data in the initial SSR response (`contentInSsr: true`), painting first content at 1,292–1,308 ms cold (216–244 ms warm) on Slow 4G and 72–84 ms unthrottled; streaming optional sections was not needed. Full report: [`docs/measurements/2026-11-28-signed-in-first-content.md`](https://github.com/CarlosZiegler/fofo/blob/main/docs/measurements/2026-11-28-signed-in-first-content.md).
- **Startup-JavaScript build budget.** `apps/web/scripts/assert-startup-js-budget.mjs` runs alongside `assert-client-bundle-clean.mjs` in `build`, `build:node` and `check:bundle`. It reads the Start manifest's `__root__` preloads and fails the build when the startup chunks exceed 3 files, 910,000 B raw or 290,000 B gzip at level 9 (baseline measured at 889,983 B raw / 283,706 B gzip). Raising the budget deliberately is documented under [W15](/docs/development/web-conventions#w15-nothing-before-the-first-paint-waits-for-a-script) and tracked in [Enforcement](/docs/development/enforcement).
- **Workers gradual deployments.** [Deployment and rollback](/docs/deploy#gradual-deployments) and the `deploy-cloudflare` skill now document staged rollouts with `wrangler versions upload` and `wrangler versions deploy`, zero-percent verification via `Cloudflare-Workers-Version-Overrides`, static asset version skew and version affinity, `CF_VERSION_METADATA` attribution, and immediate split-deployment rollback.
