Home > @shopware-pwa/helpers > loadScript

# loadScript() function

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Helper for plugins to load external scripts for plugins

Signature:

export declare function loadScript(src: string): Promise<void>;

# Parameters

Parameter Type Description
src string

Returns:

Promise<void>