PageSourceSearch

https://www.coteathome.co.uk/cdn/shop/t/16/assets/recently-viewed-products.js?v=139923069006341307541767718231

js coteathome.co.uk collected 2026-09-25 18:39:44 UTC 1,706 bytes, 2 lines download raw bytes

1if(!customElements.get("recently-viewed-products")){class RecentlyViewedProducts extends HTMLElement{constructor(){if(super(),this.url=theme.routes.search_url+"?view=recently-viewed&type=product&q=",this.theme_scroll=this.querySelector("theme-scroll"),this.container=this.querySelector(".products"),this.currentId=this.dataset.productHandle,this.max=this.dataset.count||5,this.products="",window.localStorage){let recentIds=window.localStorage.getItem("recently-viewed");recentIds&&typeof recentIds!==void 0&&(window.recentlyViewedIds=JSON.parse(recentIds))}}connectedCallback(){this.buildUrl()}buildUrl(){let i=0;window.recentlyViewedIds.forEach(val=>{val!==this.currentId&&(i>=this.max||(this.products+="handle:"+val+" OR ",i++))}),this.url=this.url+encodeURIComponent(this.products),this.fetchProducts()}fetchProducts(){fetch(this.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector(".products");recommendations&&recommendations.innerHTML.trim().length&&(this.container.innerHTML=recommendations.innerHTML,this.classList.add("product-recommendations--loaded"),this.theme_scroll.init(),setTimeout(()=>{window.dispatchEvent(new Event("resize")),ScrollTrigger.batch(this.container.querySelectorAll(".animations-true .products .product-card--image-primary"),{start:"top 90%",onEnter:elements=>{gsap.to(elements,{scale:1,opacity:1,stagger:.15,ease:window.theme.settings.animation_easing})}})}))}).catch(e=>{console.error(e)})}}customElements.define("recently-viewed-products",RecentlyViewedProducts)}
2//# sourceMappingURL=/cdn/shop/t/16/assets/recently-viewed-products.js.map?v=139923069006341307541767718231

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.