Skip to main content

Function: ensureComponentsLoaded()

ensureComponentsLoaded(): Promise<void>

Defined in: components-loader.ts:43

Inject the components bundle, resolving once it has executed and defined the custom elements. Injected only once per page however many times this is called, and rejects when the tenant has no compiled bundle.

Injected as type="module", because the bundle is an ES module whose top-level declarations would otherwise leak into the host page's global lexical scope and collide with its identifiers.

Returns

Promise<void>