Files
hyperframes/packages
Miguel Angel Simon Sierra c9b4263c7d perf(cli): warm the preview route before the browser opens
The browser's first request for a project's preview paid the server's cold
compiler import and first bundle in the request path, after the studio
shell's own first-layout stall, so both costs landed on the user's
time-to-first-frame in series. The CLI now issues one fire-and-forget
request for the preview route from openStudioBrowser, the single funnel
for every launch path, before the --no-open early return so pasted URLs
benefit too. Measured on the demo project: first client request 231ms
before, 101ms after; the ETag 304 path afterwards is under 1ms.

The fetch carries a 10s abort so an unsettled connection cannot keep an
otherwise-finished CLI process alive, matching the package's existing
convention. The shader query params the player appends are not part of
the route's cache key, so the plain route URL warms the same entry.
2026-09-12 05:22:49 -04:00
..
2026-09-11 14:30:23 -07:00
2026-09-11 14:30:23 -07:00
2026-09-11 14:30:23 -07:00
2026-09-11 14:30:23 -07:00
2026-09-11 14:30:23 -07:00
2026-09-11 14:30:23 -07:00
2026-09-11 14:30:23 -07:00
2026-09-11 14:30:23 -07:00
2026-09-11 14:30:23 -07:00
2026-09-11 14:30:23 -07:00
2026-09-11 14:30:23 -07:00
2026-09-11 14:30:23 -07:00