PageSourceSearch

https://www.fibremood.com/cdn/shop/t/70/assets/lazy-loading-javascript.js?v=31611820917311431591771966105

js fibremood.com collected 2026-10-02 07:01:11 UTC 2,088 bytes, 2 lines download raw bytes

1window.addEventListener("scroll",async function loadStickyHeaderScriptOnScroll(){try{await importScript(window.dynamicImport.stickyHeader)}catch(error){console.error("Failed to load sticky header script:",error)}window.removeEventListener("scroll",loadStickyHeaderScriptOnScroll)}),window.addEventListener("scroll",async function loadBackToTopOnScroll(){try{await importScript(window.dynamicImport.backToTop)}catch(error){console.error("Failed to load back-to-top script:",error)}window.removeEventListener("scroll",loadBackToTopOnScroll)});class LazyLoadingJs extends HTMLElement{constructor(){super(),this.isLoading=null,this.events=["mouseenter","touchstart","click"],this.init()}init(){const{url,intersection,intersectionThreshold,...dataset}=this.dataset;url&&(this.clickStatus=!1,this.url=url,this.datasetParams=dataset,this.intersectionThreshold=parseFloat(intersectionThreshold)||.1,intersection?this.observeIntersection():this.addEventListeners())}async loadScript(){if(this.isLoading!==!1){if(this.isLoading===!0)return new Promise(resolve=>{const checkInterval=setInterval(()=>{this.isLoading===!1&&(clearInterval(checkInterval),resolve())},50)});this.isLoading=!0;try{await importScript(this.url,this.datasetParams)}catch(error){console.error("Failed to load script:",error)}this.isLoading=!1}}async handleEvent(event){event.type==="click"&&(this.clickStatus=!0),await this.loadScript(),this.isLoading===!1&&(this.events.forEach(eventType=>this.removeEventListener(eventType,this.handleEvent)),this.clickStatus===!0&&event.target.click())}observeIntersection(){new IntersectionObserver((entries,observerInstance)=>{entries.forEach(entry=>{entry.isIntersecting&&(this.loadScript(),observerInstance.unobserve(entry.target))})},{threshold:this.intersectionThreshold}).observe(this)}addEventListeners(){this.events.forEach(eventType=>this.addEventListener(eventType,this.handleEvent.bind(this),{once:!0,passive:!0}))}}customElements.define("lazy-loading-js",LazyLoadingJs);
2//# sourceMappingURL=/cdn/shop/t/70/assets/lazy-loading-javascript.js.map?v=31611820917311431591771966105

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.