Site / With Remote and SSR
Reading ahead: preload is the same composition
Look again at preload in Site.routing. pointedLinks() from
foldkit-primitives/dom says which same-origin link the reader means to
follow: one a mouse or pen rests on, or Tab stops on, for 50 ms (leaving
first cancels it, so a pointer sweeping the list of owners reads one page),
or one a finger lands on, at once. The routing sends PointedAtLink for it
and answers that Message itself. When Site.routeAt says this application
draws the address, and it is not the route shown, read gets the Model with
the route set there, and Data.preload(there, sources) reads what that Model
would need.
Data.preload is Data.satisfy as a Command. Its answers arrive as one
Preloaded Message, reduced into the Model as it is by then, so nothing that
happened meanwhile is undone. The route does not change, and the routing
returns the Model it was given; the store just holds the projects already.
When the click comes, the page draws Ready at once. There is no loader
cache, preload lane or "intended route" field: what was read waits in the
same store as everything else, until retention next changes.