Skip to main content

Module marks

Module marks 

Source
Expand description

FRAME-17: the host’s marks — its steps on the page’s clock, each a performance.mark named plexus-ui:<step> (CONTRACT.md’s host chapter), read by a probe with performance.getEntriesByType("mark"):

markwhen
plexus-ui:components-parsedthe manifest and components.json read and handed to the registry
plexus-ui:first-callthe first snapshot a live asks
plexus-ui:handlers-compiled:<component>a component’s handlers compiled — when it is mounted, not before
plexus-ui:section-mounted:<slot>a section of the route’s layout filled at boot
plexus-ui:layout-mountedthe route’s component drawn at boot, its sections filled (FRAME-50: the last in its turn)
plexus-ui:first-answerthe first snapshot answered whole (its done)
plexus-ui:first-rowthe first answered rows on the page
plexus-ui:answered:<snapshot>, plexus-ui:drawn:<snapshot>each snapshot method’s first answer with rows, and its rows on the page — drawn − answered is the fold and the draw
plexus-ui:walk:<layout>FRAME-18: a module layout’s element walked for its section marks — after its mount, after each update, and on each change its observer saw outside its filled sections

Natively (the tests) a mark is kept in a list (taken).

Functions§

mark
Marks plexus-ui:<step> now.
marked
Whether plexus-ui:<step> was marked by once.
now
The page’s clock (performance.now()); natively a count.
once
Marks plexus-ui:<step> the first time only (a page’s first call, answer, row; a boot’s sections).
once_at
once, dated at on the page’s clock (performance.mark(name, { startTime })): what happened before the step that knows it happened.
taken
Every mark taken on this thread, in order.