Initialise the wdpr runtime by scanning the DOM and binding event
listeners for all interactive Wikidot elements found under root.
Returns a WdprRuntime handle whose destroy() method removes
every listener that was attached — call it before unmounting the
content (e.g. on SPA route changes) to avoid memory leaks.
Initialise the wdpr runtime by scanning the DOM and binding event listeners for all interactive Wikidot elements found under
root.Returns a WdprRuntime handle whose
destroy()method removes every listener that was attached — call it before unmounting the content (e.g. on SPA route changes) to avoid memory leaks.