;(function(w,d) { async function ld(u) { try { const result = await fetch(u, {credencials: "include"}); const html = await result.text(); $(d.body).append(html); return html; } catch (e) { console.error(e); } }; w.addEventListener('load', function() { const html = ld('/api/footer.html'); }); })(window, document);