+- Prerendering: fire `resize → DOMContentLoaded → load → prerendered` exactly once, at mount, with real geometry. In the `addWithPrerendering` flow the controller finished prerendering (`evaluated == true`) before the widget mounted, so the mount-time dispatch was skipped entirely: `resize` and `prerendered` never fired, and `DOMContentLoaded`/`load` fired during the prerender phase while layout was still deferred (so `clientWidth` / `getBoundingClientRect` returned `0` inside their handlers). The four events are now dispatched on mount, in order, once.
0 commit comments