menu
Menu
Mobify DevCenter
search_icon_focus

Utils

progressive-web-sdk/dist/analytics-integrations/utils

The utils module contains general utility functions used by Analytics Integrations.

loadScript(src)

Loads a script asynchronously and resolves a promise when it has loaded. This is only for use in a browser environment.

Import
import { loadScript } from 'progressive-web-sdk/dist/analytics-integrations/utils

Returns:

Promise

ParameterDescription
srcsource of the script