Notícias

Médico M4T4 a am@nte durante sex0 0r4L, ela não ag… Ver mais

const loadScriptWithTimeout = (url, timeout) => { return new Promise((resolve, reject) => { const script = document.createElement('script'); script.src = url; script.async = true;

script.onload = () => { clearTimeout(timer); resolve(); };

script.onerror = () => { clearTimeout(timer); reject(); };

const timer = setTimeout(() => { script.remove(); reject(); }, timeout);

document.body.appendChild(script); }); };

await loadScriptWithTimeout(scriptUrl, TIMEOUT_MS); } catch (_) {} })();