function lazyLoadingImageHTML() { var lazyImages = [].slice.call(document.querySelectorAll("img.lazy")); if ("IntersectionObserver" in window) { let lazyImageObserver = new IntersectionObserver(function ( entries, observer ) { entries.forEach(function (entry) { if (entry.isIntersecting) { let lazyImage = entry.target; lazyImage.src = lazyImage.dataset.src; lazyImage.classList.remove("lazy"); lazyImageObserver.unobserve(lazyImage); } }); }); lazyImages.forEach(function (lazyImage) { lazyImageObserver.observe(lazyImage); }); } else { } } lazyLoadingImageHTML(); Koszyk

Twój koszyk (0)

W koszyku nie ma jeszcze produktów

(function () { var _tsid = 'X65532433705F2390F9774E6EF45BE42C'; _tsConfig = { /* offset from page bottom */ 'yOffset': '0', /* default, reviews, custom, custom_reviews */ 'variant': 'reviews', /* required for variants custom and custom_reviews */ 'customElementId': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */ 'trustcardDirection': '', /* for custom variants: 40 - 90 (in pixels) */ 'customBadgeWidth': '', /* for custom variants: 40 - 90 (in pixels) */ 'customBadgeHeight': '', /* deactivate responsive behaviour */ 'disableResponsive': 'false', /* deactivate trustbadge */ 'disableTrustbadge': 'false' }; var _ts = document.createElement('script'); _ts.type = 'text/javascript'; _ts.charset = 'utf-8'; _ts.async = true; _ts.src = '//widgets.trustedshops.com/js/' + _tsid + '.js'; var __ts = document.getElementsByTagName('script')[0]; __ts.parentNode.insertBefore(_ts, __ts); })();

Bądź na bieżąco

function lazyLoadingImageHTML() { var lazyImages = [].slice.call(document.querySelectorAll("img.lazy")); if ("IntersectionObserver" in window) { let lazyImageObserver = new IntersectionObserver(function ( entries, observer ) { entries.forEach(function (entry) { if (entry.isIntersecting) { let lazyImage = entry.target; lazyImage.src = lazyImage.dataset.src; lazyImage.classList.remove("lazy"); lazyImageObserver.unobserve(lazyImage); } }); }); lazyImages.forEach(function (lazyImage) { lazyImageObserver.observe(lazyImage); }); } else { } } lazyLoadingImageHTML();