loadScript | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function loadScript

    • Load a JavaScript file and add it to the DOM

      Parameters

      • scriptsrc: string

        The script source URL

      • Optionaloptions: { doc?: Document; module?: boolean }
        • Optionaldoc?: Document
        • Optionalmodule?: boolean

          Load as module

      Returns Promise<HTMLScriptElement>

      A promise resolving to the script node