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

      • module: { module?: boolean } = {}

        Load as module

      Returns Promise<HTMLScriptElement>

      A promise resolving to the script node