//anLLtemplate (function() { function logToConsole(message, ...params) { if (false) { console.log('%c [lazy-aldente-server]: ', 'background: gray; color: #bada55', message, params); } } let target = document.querySelector('.'); let adrIntersectionLoaded = false; target.style.display='unset'; let options = { root: null, rootMargin: '220px', threshold: [1.0] } logToConsole('intersection options', options); let addScript = function (src){ var _in = document.querySelector('.'); var scriptNode = document.createElement('script'); scriptNode.src = src; _in.appendChild(scriptNode); } let intersectonCallback = function(e) { if (adrIntersectionLoaded) { console.log('adrIntLoaded'); return; } if (e.length) { if (e[0].isIntersecting) { adrIntersectionLoaded = true; addScript('https://emisja.contentstream.pl//aldente/kd_process_function.js?lazyLoadingFired=true&TYPE=simplePlacementCustom&hash=0b753941a771ba6ed3361bb66c2873e6&type=simplePlacementCustom&clsToFind='); logToConsole('intersection enter - executed loading emission script'); } } } try { window.adrObs = new IntersectionObserver(intersectonCallback, options); window.adrObs.observe(target); } catch(err) { logToConsole('no IntersectionObserver?'); addScript('//emisja.contentstream.pl/aldente/kd_process_function.js?lazyLoadingFired=true&TYPE=simplePlacementCustom&hash=0b753941a771ba6ed3361bb66c2873e6&type=simplePlacementCustom&clsToFind='); } })();