PageSourceSearch

https://stila.co.uk/cdn/shop/t/33/assets/component-cart-recommendations.js?v=177011707308135959241723099981

js stila.co.uk collected 2026-09-25 18:46:27 UTC 874 bytes, 2 lines download raw bytes

1class CartRecommendations extends HTMLElement{constructor(){super(),this.generateRecommendations()}generateRecommendations(){const cartItems=document.getElementById("AjaxCartForm").querySelectorAll("[data-js-cart-item]");cartItems.length>0&&fetch(`${KROWN.settings.routes.product_recommendations_url}?section_id=${this.dataset.section}&product_id=${cartItems[0].dataset.productId}&limit=${this.dataset.limit}`).then(response=>response.text()).then(text=>{const innerHTML=new DOMParser().parseFromString(text,"text/html").querySelector("[data-js-cart-recommendations-performed]");innerHTML&&innerHTML.querySelectorAll("[data-js-product-item]").length>0&&(this.innerHTML=innerHTML.innerHTML)})}}customElements.define("cart-recommendations",CartRecommendations);
2//# sourceMappingURL=/cdn/shop/t/33/assets/component-cart-recommendations.js.map?v=177011707308135959241723099981

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.