PageSourceSearch

https://planjeweek.nl/cdn/shop/t/16/assets/product-recommendations.js?v=32580586123019913961789732158

js planjeweek.nl collected 2026-10-08 22:11:20 UTC 2,023 bytes, 2 lines download raw bytes

1class ProductRecommendations extends HTMLElement{constructor(){super(),this.fetch_delay=0}connectedCallback(){if(this.onPageLoad=this.hasAttribute("on-page-load"),this.onPageLoad)this._loadRecommendations();else{const handleIntersection=(entries,observer)=>{entries.forEach(entry=>{entry.isIntersecting&&(observer.unobserve(this),this.fetch_delay=Number(window.theme?.complementary_products_fetch_delay||"0"),setTimeout(()=>{this._loadRecommendations()},this.fetch_delay))})};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 400px 0px"}).observe(this)}}_loadRecommendations(){fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector("product-recommendations");if(recommendations&&recommendations.innerHTML.trim().length){const existingContentCards=this.querySelectorAll(".product-card"),newContentCards=Array.from(recommendations.querySelectorAll(".product-card"));if(newContentCards.length>0&&newContentCards.length>0&&existingContentCards.length===newContentCards.length?existingContentCards.forEach((card,i)=>card.replaceWith(newContentCards[i])):this.innerHTML=recommendations.innerHTML,this.dataset.quickShopDynamicCheckout==="true"){let shopifyPaymentButtonInterval=setInterval(()=>{window.Shopify.PaymentButton&&(window.Shopify.PaymentButton.init(),clearInterval(shopifyPaymentButtonInterval))},50)}if(document.body.dataset.animLoad==="true"&&typeof window.sr<"u"&&!this.hasAttribute("animated")){const title=this.querySelector(".section__title");title&&window.sr.reveal(title,{interval:50}),this.querySelectorAll(".product-card-top").forEach(el=>{const container=el.closest(".grid-layout");window.sr.reveal(el,{container,origin:"bottom",interval:50,reset:!0})})}}}).catch(e=>{console.error(e)})}}customElements.define("product-recommendations",ProductRecommendations);
2//# sourceMappingURL=/cdn/shop/t/16/assets/product-recommendations.js.map?v=32580586123019913961789732158

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.