// The page lifecycle (web_interface/static/v3/js/core/registry.js). // // A converted partial's root carries data-page=""; the registry calls // the page module's init(root, ctx) once when the root appears and // destroy(root, ctx) when htmx swaps it away, aborting ctx.signal so every // listener the page registered with it goes too. This is what replaces the // inline