kit
    Preparing search index...

    Function listenLoaded

    • Fires a callback when the DOM content is loaded or, if it already is, asynchronously with a synthetic DOMContentLoaded event

      Parameters

      • handler: (event: Event) => void

      Returns () => void

      An automatic unbinding function to run to deregister the listener upon call