MCPcopy Create free account
hub / github.com/GrapesJS/react / loadScripts

Function loadScripts

packages/grapesjs-react/src/utils/dom.ts:34–37  ·  view source on GitHub ↗
(scripts: { id: string; src: string }[])

Source from the content-addressed store, hash-verified

32};
33
34export const loadScripts = (scripts: { id: string; src: string }[]) => {
35 const promises = scripts.map(script => loadScript(script));
36 return Promise.allSettled(promises);
37};

Callers 1

loadPluginsFunction · 0.90

Calls 1

loadScriptFunction · 0.85

Tested by

no test coverage detected