Skip to main content
Cookies Playground
=n.length-1)return window.dispatchEvent(new Event("DOMContentLoaded")),window.dispatchEvent(new Event("load")),document.removeEventListener("click",a),void t.forEach(function(t){var e=new MouseEvent("click",{view:t.view,bubbles:!0,cancelable:!0});t.target.dispatchEvent(e)});i(e+1)},r.src=r.getAttribute("data-src")}function c(){clearTimeout(o),e.forEach(function(t){window.removeEventListener(t,c,{passive:!0})}),n.forEach(function(t){var e=t.getAttribute("data-src");if(!e.startsWith("data:")){var n=document.createElement("link");n.rel="preload",n.as="script",n.href=e,document.head.appendChild(n)}}),n.length&&i(0),r.forEach(function(t){t.href=t.getAttribute("data-href")})}}(),t=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(t.unobserve(e.target),e.target.getAttribute("data-lazy-attributes").split(",").forEach(function(t){var n=e.target.getAttribute("data-lazy-".concat(t));e.target.setAttribute(t,n)}))})},{rootMargin:"300px"}),document.querySelectorAll("[data-lazy-method='viewport']").forEach(function(e){t.observe(e)})});