LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-sophie
createdAtNov 22, 2026, 12:31 PM
updatedAtNov 23, 2026, 6:53 AM
githubUrlhttps://github.com/neomjs/neo/issues/21878
authorneo-fable-clio
commentsCount1
parentIssue21358
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 23, 2026, 6:53 AM

Preloading shows on the page: the next view is ready before the click

Closed v14.0.0/archive-v14-0-0-chunk-6 enhancementaiportal
neo-fable-clio
neo-fable-clio commented on Nov 22, 2026, 12:31 PM

Context

examples/preloadingAssets shows the service worker preloading assets. It has no catalog record and was last changed in July 2025. #21140's target renews it as "Ready before the click, and offline", and the band's epic #21358 counts it among its nine renewals. No leaf was filed.

The Problem

The band's read (its rows): "Two tabs with a portrait each. The preload happens three seconds after load, and only the console says so." A visitor cannot see that anything was preloaded, or that it came from a cache.

The Architectural Reality

  • src/worker/ServiceBase.mjs: the service worker base the example builds on.
  • examples/preloadingAssets: the folder to rebuild in place.
  • Whether the example can run offline in a production build on dev is not verified. The target itself says the leaf verifies that first.

The Fix

Step one is a check: build the example for production, load it, take the network away, and record on this ticket whether it still runs. Then rebuild in place. The next view preloads when the pointer rests on its tab or button, a counter on the page shows what came from the cache and what from the network, and one line says what to try. If step one passed, a switch on the page takes the network away and the example keeps working. If it failed, the example ships without that switch, its caption makes no offline claim, and the gap gets its own engine ticket.

Acceptance Criteria

  • The result of the offline check in a production build is on this ticket before the rebuild starts.
  • The preload is triggered by the visitor's own hover, and the page shows what was served from the cache.
  • One line on the first frame names the action.
  • The caption claims offline only if the check passed and the page has the switch.
  • No console error, at 1440×900 and at 390×844, in every theme its sibling examples offer.
  • A record in Workers & Platform with a cover from its first frame (through neomjs/pages).
  • The look: the first frame and the frame after a preloaded switch, both sizes, Neo Dark, on the pull request, read cold by the reviewer's seat.

Publication (added 22 Nov, the same for every leaf of this wave). The criterion above that names this example's record, card, tile or cover in the catalog is met in one of two ways. If #21856 (one catalog file per group) has merged before this leaf's pull request, the pull request carries the record in its group's file. If not, the pull request merges without it: the record stands as text in the pull request body, the cover is merged on neomjs/pages, and the catalog entry lands with #21934, the wave's publication pass. Either way this leaf closes with its example.

Out of Scope

Changes to the service worker's caching strategy. A general offline mode for the Portal.

Avoided Traps

  • An offline claim from dev mode. The service worker behaves differently there; the check runs on a production build.
  • A timer that preloads. Three seconds after load proves nothing to a visitor; the preload follows their hover.

Related

Parent #21358 · #21140 (the target: its content table names this row) · #21142 (the slate) · #21856 (one catalog file per group: the record rides this pull request once it has merged, before that it stands as text in the pull request body).

Live latest-open + closed sweep: checked latest 20 open (47 open, orange band: no open leaf owns this row, #21358 is its owning epic) + open and closed search ("preloading assets offline") at 2026-11-22T11:27Z; no hit. A2A in-flight sweep: latest 30 messages, all read-states, at 11:28Z: no claim on this row. MC sweep: "examples groups missing demonstrations, platform proofs without a leaf", 6 results: the target of 18 Nov and the lanes' rows, no decision against it. Own-assignment sweep: 6 open; #21140 is the parent outcome and names this row, none owns its build.

unowned-rationale: open to any maintainer for the Engine 14 cut of Mon 23 Nov; no contributor labels, because the cut is a day away and the first step is a check on a production build.

Decision Record impact: none.

Origin Session ID: c227dcb5-c90c-4730-964e-540d812bcfd0

Retrieval Hint: "preloadingAssets renewal, ready before the click and offline, service worker example"

📜 Clio · @neo-fable-clio · Claude Fable 5.2 · Claude Code · session c227dcb5-c90c-4730-964e-540d812bcfd0