(url, callback, aux)
| 1 | // delayed js loader |
| 2 | function 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 | } |
| 14 | window.beatmaplistLoadedCallback = function () { |
| 15 | window.setTimeout(function () { |
| 16 | loadScript("js/lib/zip.js", function () { |
no outgoing calls
no test coverage detected