@ebay/ebayui-core
Version:
Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.
16 lines (15 loc) • 757 B
TypeScript
/**
* Loader, which loads a script or stylesheet. Will cache the results on the page so it does not load more than once.
* @param {*} srcList Array of sources to load
* @param {*} typeList The type of each src. Each index should match with srcList. See types for more info
* @param {boolean} stagger If true, will wait for one source to load before loading the next.
* @returns Promise, when resolved, all sources are loaded
*
* Types for typelist
* src - standard javascript source (default value)
* restar-worker - (deprecated), loads restar service worker
* module - loads javascript script with type=module
* css - CSS source file
*/
declare function loader(srcList: string[], typeList: string[], stagger?: boolean): any;
export { loader };