Defer ackee script loading ?

This commit is contained in:
SansGuidon 2023-12-28 09:56:43 +01:00
parent 5c1bc0635e
commit bdc9ca8638

View File

@ -150,6 +150,15 @@
</p>
</footer>
<script async src="https://ackee.zoemp.be/tracker.js" data-ackee-server="https://ackee.zoemp.be" data-ackee-domain-id="2baf29a2-e1ac-4777-a141-8d1a08cb355f"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var ackeeScript = document.createElement('script');
ackeeScript.async = true;
ackeeScript.src = "https://ackee.zoemp.be/tracker.js";
ackeeScript.setAttribute('data-ackee-server', 'https://ackee.zoemp.be');
ackeeScript.setAttribute('data-ackee-domain-id', '2baf29a2-e1ac-4777-a141-8d1a08cb355f');
document.body.appendChild(ackeeScript);
});
</script>
</body>
</html>