function loadSourcesRequiringConsent() { var e = document.querySelectorAll("script[data-src]:not([src]),iframe[data-src]:not([src]),img[data-src]:not([src])"); for (var i = 0; i != e.length; i++) { var clone = document.createElement(e[i].tagName); Array.prototype.slice.call(e[i].attributes).forEach(function (attribute) { clone.setAttribute(attribute.name, attribute.value); }); if (clone.getAttribute("data-src").indexOf("https://www.microsoft.com/jsll-4.js") != -1) { clone.onload = function () { awa.init(config); } } clone.src = clone.getAttribute("data-src"); while (e[i].hasChildNodes()) { clone.appendChild(e[i].removeChild(e[i].firstChild)); } e[i].parentNode.replaceChild(clone, e[i]); } } document.addEventListener("DOMContentLoaded", function () {if (typeof mscc !== "undefined") { if (mscc.hasConsent()) { loadSourcesRequiringConsent() } else { mscc.on("consent", loadSourcesRequiringConsent) } }});