@wfkit/load-scripts
v1.0.4
Published
Dynamic scripts loading for modern browsers.
Downloads
29
Readme
@wfkit/load-scripts
Installation
pnpm i @wfkit/load-scripts
Usage
import { loadScripts, loadScriptsSeries } from '@wfkit/load-scripts';
// 并行
await loadScripts(['src1', 'src2', ...]);
// 串行
await loadScriptsSeries(['src1', 'src2', ...]);
// 或
await loadScriptsSeries([['src1', 'src2'], ['src3', 'src4'], ...]);
License
MIT © YDWF.COM