1.1 KiB
1.1 KiB
Shared client scripts (htmx-ssr glue)
Base client scripts for the htmx-ssr render profile. The website-htmx-ssr
template pulls these into a site's site/public/js/. The htmx.min.js library
and extensions live in templates/shared/htmx/.
Load order
theme-init.js— inline in<head>before first paint (no-flash). Minify for inlining.htmx.min.js+ needed extensions (from../htmx/).- Feature libraries when used:
hljs(highlight bundle),cytoscape, content-graph. htmx-reinit.js— defineswindow.RusteloReinit(must precede handlers).reinit-handlers.js— registershighlight/theme/tag-filters/content-graph.tag-filters.js,highlight-utils.js— provide the globals the handlers call.
Handlers feature-detect and no-op when a library is absent, so a site that omits cytoscape/content-graph drops those libs without touching this glue.
Provenance
Promoted from jpl-website/site/public/js. Snapshot, not a live mirror — when
jpl-website's glue evolves, re-promote (tracked as a backlog item).