PageSourceSearch

https://capalaswim.com/cdn/shop/t/31/assets/custom-swatches.js?v=56227022463567815551789647521

js capalaswim.com collected 2026-10-04 06:20:54 UTC 2,673 bytes, 2 lines download raw bytes

1(function(){"use strict";var prefetched=new Set,supportsPrefetch=(function(){var link=document.createElement("link");return!!(link.relList&&link.relList.supports&&link.relList.supports("prefetch"))})();function connectionAllowsEager(){var c=navigator.connection;return c?!(c.saveData||c.effectiveType&&/(^|-)2g/.test(c.effectiveType)):!0}function prefetch(url){if(!(!url||url.indexOf("/products/")===-1||prefetched.has(url)))if(prefetched.add(url),supportsPrefetch){var link=document.createElement("link");link.rel="prefetch",link.href=url,link.as="document",document.head.appendChild(link)}else try{fetch(url,{credentials:"same-origin",mode:"same-origin"}).catch(function(){})}catch(e){}}function siblingUrl(target){if(!target||!target.closest)return null;var a=target.closest("a.sibling__link[href]");if(a)return a.getAttribute("href");var holder=target.closest("[data-sibling-link]");return holder?holder.getAttribute("data-sibling-link"):null}var heroPreloaded=new Set;function preloadSiblingHero(url){if(!(!url||heroPreloaded.has(url)||!connectionAllowsEager())){heroPreloaded.add(url);try{fetch(url,{credentials:"same-origin",mode:"same-origin"}).then(function(r){return r.ok?r.text():null}).then(function(html){if(html){var doc=new DOMParser().parseFromString(html,"text/html"),img=doc.querySelector(".product__slides img"),pre;if(img&&(img.getAttribute("srcset")||img.getAttribute("src"))){pre=new Image;var sizes=img.getAttribute("sizes"),srcset=img.getAttribute("srcset"),src=img.getAttribute("src");sizes&&(pre.sizes=sizes),srcset&&(pre.srcset=srcset),src&&(pre.src=src)}else{var og=doc.querySelector('meta[property="og:image:secure_url"], meta[property="og:image"]');og&&og.getAttribute("content")&&(pre=new Image,pre.src=og.getAttribute("content"))}}}).catch(function(){})}catch(e){}}}["pointerover","touchstart","focusin"].forEach(function(evt){document.addEventListener(evt,function(e){var url=siblingUrl(e.target);url&&(prefetch(url),e.target.closest&&e.target.closest(".product__siblings")&&preloadSiblingHero(url))},{capture:!0,passive:!0})});function eagerPrefetch(){if(connectionAllowsEager())for(var links=document.querySelectorAll(".product__siblings a.sibling__link[href]:not(.sibling__link--current)"),i=0;i<links.length&&i<10;i++){var href=links[i].getAttribute("href");prefetch(href),i<6&&preloadSiblingHero(href)}}function atIdle(fn){"requestIdleCallback"in window?requestIdleCallback(fn,{timeout:4e3}):setTimeout(fn,2e3)}document.readyState==="complete"?atIdle(eagerPrefetch):window.addEventListener("load",function(){atIdle(eagerPrefetch)})})();
2//# sourceMappingURL=/cdn/shop/t/31/assets/custom-swatches.js.map?v=56227022463567815551789647521

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.