Documentation
¶
Overview ¶
Package gothiccore owns gothic-core.js: the shared, idempotent client runtime globals that used to be inlined into every per-instance WASM bootstrap script.
Phase 15 extracts them into a single static asset so the browser fetches and parses them ONCE per page (cached across renders and HTMX fragments) instead of re-shipping the ~4 KB preamble inside every component's inline <script>. The layout references it once in <head>; the per-instance bootstrap only fetches/instantiates/registers its own module and defensively ensures the core is present.
It is a leaf package (no internal deps) so BOTH the routes bootstrap layer and the wasm build layer can import it without a dependency cycle.
Index ¶
Constants ¶
const FileName = "gothic-core.js"
FileName is the emitted asset's basename under public/.
const JS = `` /* 12641-byte string literal not displayed */
JS is the shared idempotent runtime installed once per page. Every block is guarded so N components (or repeated HTMX re-mounts) never redeclare a global. This is byte-for-byte the preamble that used to live in the per-instance bootstrap (topic buffer pool, async dispatch, findScope, instances registry, per-scope teardown, the unmount MutationObserver) PLUS the multiplexing structures and the once-installed mux teardown wrapper — with one change: the MutationObserver install is deferred to DOMContentLoaded when document.body is not yet present (this script runs from <head>, before the body exists).
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.