Skip to content
HomePagesHomePages template kit

CAPTURE_HAS_ISLANDS_EXPRESSION

The in-page test for "this page ships islands" — the presence of one island marker.

The in-page test for “this page ships islands” — the presence of one island marker. It is the derived signal the whole widening branches on: markers are what the renderer emits for an island and what the loader hydrates, so a page with none has no runtime, nothing to mount, and nothing to wait for. A capturer that finds this false runs {@link CAPTURE_READY_EXPRESSION} and nothing else — an island-free page’s settle is byte-identical to what it was before islands existed.

The attribute is spelled out rather than imported from the island runtime: this module sits below it and is inlined into published packages, and a capture constant may not drag a browser loader into their graphs.

Import from @homepages/template-kit.

const CAPTURE_HAS_ISLANDS_EXPRESSION: string