MCPcopy Index your code
hub / github.com/apache/echarts / loadScript

Function loadScript

test/lib/simpleRequire.js:98–111  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

96 }
97
98 function loadScript(url) {
99 return new Promise(function (resolve, reject) {
100 var script = document.createElement('script');
101 script.async = true;
102 script.onload = function () {
103 resolve();
104 }
105 script.onerror = function () {
106 handleLoadError(url, resolve, reject);
107 }
108 script.src = url;
109 document.head.appendChild(script);
110 });
111 }
112
113 function resolvePath(p) {
114 var paths = requireCfg.paths || {};

Callers 1

loadModFunction · 0.85

Calls 1

handleLoadErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…