Constructors
constructor
-
Parameters
-
Default value container: HTMLElement = document.head
Properties
Private container
container: HTMLElement
Methods
loadBundle
- loadBundle(bundle: { module?: undefined | string; nomodule?: undefined | string }): Promise<Event | undefined>
-
Parameters
-
bundle: { module?: undefined | string; nomodule?: undefined | string }
-
Optional module?: undefined | string
-
Optional nomodule?: undefined | string
Returns Promise<Event | undefined>
loadScript
- loadScript(options: { attributes?: { key: string; value: any }[]; bundleType?: BundleType; src: string }): Promise<Event>
-
Parameters
-
options: { attributes?: { key: string; value: any }[]; bundleType?: BundleType; src: string }
-
Optional attributes?: { key: string; value: any }[]
-
Optional bundleType?: BundleType
-
src: string
Returns Promise<Event>