@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
13 lines (12 loc) • 513 B
TypeScript
export interface LoadScriptAttributes {
crossorigin?: boolean | 'anonymous' | 'use-credentials' | '';
integrity?: string;
referrerpolicy?: ReferrerPolicy;
}
/**
* Common function that loads script async
* @param id - unique script id that is used as a marker to prevent future load
* @param src - script src (url) to load
* @param attrs - additional attributes to set on the script tag
*/
export declare function loadScript(id: string, src: string, attrs?: LoadScriptAttributes): Promise<Event>;