119 el.className = classes;
120 // MAIN_ID exists, and is not the root
121▶ // @ts-expect-error
122 insertAfter(el, document.getElementById(MAIN_ID));
123 }
· · ·
203 * Run a JavaScript file asynchronously.
204 * @param {string} url
205▶ * @param {function(): any} [errorCallback]
206 */
207 function loadScript(url, errorCallback) {
· · ·
207▶ function loadScript(url, errorCallback) {
208 const script = document.createElement("script");
209 script.src = url;
· · ·
210▶ if (errorCallback !== undefined) {
211 script.onerror = errorCallback;
212 }
· · ·
211▶ script.onerror = errorCallback;
212 }
213 document.head.append(script);
+ 33 more matches in this file