LWT JavaScript API
    Preparing search index...
    • Execute a callback when the DOM is ready.

      If the document has already finished loading/parsing, the callback runs immediately (synchronously). Otherwise it waits for DOMContentLoaded.

      Parameters

      • callback: () => void

        Function to run once the DOM is ready

      Returns void