function loadVendorScript
loadVendorScript(
src: string,
attributes?: { [key: string]: string; },
callback?: () => void
): void

Utility function to load an external vendor script.

Parameters

src: string

The URL of the script to load.

optional
attributes: { [key: string]: string; }

Optional attributes to set on the script tag.

optional
callback: () => void

Optional callback function to execute once the script is loaded.

Return Type

void

Usage

import { loadVendorScript } from ".";