MCPcopy Create free account
hub / github.com/BlaNKtext/webosu / loadScript

Function loadScript

js/jsloader.js:2–13  ·  view source on GitHub ↗
(url, callback, aux)

Source from the content-addressed store, hash-verified

1// delayed js loader
2function loadScript(url, callback, aux) {
3 let script = document.createElement("script");
4 document.head.appendChild(script);
5 if (callback)
6 script.onload = callback;
7 if (aux) {
8 for (let key in aux) {
9 script.setAttribute(key, aux[key]);
10 }
11 }
12 script.src = url;
13}
14window.beatmaplistLoadedCallback = function () {
15 window.setTimeout(function () {
16 loadScript("js/lib/zip.js", function () {

Callers 2

jsloader.jsFile · 0.85
checkdepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected