PageSourceSearch

https://www.anapaya.net/hubfs/hub_generated/template_assets/1/1664…/1790164203907/template_lazybg.min.js

js anapaya.net collected 2026-09-24 20:58:28 UTC 1,709 bytes, 2 lines download raw bytes

1function BackgroundNode({node:e,loadedClassName:a}){let o=e.getAttribute("data-bgurl");console.log(e,o,"node");let l=l=>{requestAnimationFrame(()=>{e.style.backgroundImage=`url(${o})`,e.classList.add(a),l()})};return{node:e,load(e){let a=new Image;a.onload=l(e),a.src=o}}}let defaultOptions={selector:"[data-bgurl]",loadedClassName:"loaded"};function BackgroundLazyLoader({selector:e,loadedClassName:a}=defaultOptions){let o=[].slice.apply(document.querySelectorAll(e)).map(e=>new BackgroundNode({node:e,loadedClassName:a})),n=new IntersectionObserver((e,a)=>{e.forEach(({target:e,isIntersecting:l})=>{if(!l)return;let n=o.find(a=>a.node.isSameNode(e));n&&n.load(()=>{a.unobserve(e),(o=o.filter(a=>!a.node.isSameNode(e))).length||a.disconnect()})})});o.forEach(e=>n.observe(e.node))}BackgroundLazyLoader();var lazyBackgrounds=[].slice.call(document.querySelectorAll(".lazy-background"));if("IntersectionObserver"in window){let e=new IntersectionObserver(function(a,o){a.forEach(function(a){a.isIntersecting&&(a.target.classList.add("visible"),e.unobserve(a.target))})});lazyBackgrounds.forEach(function(a){e.observe(a)})}lazyBackgrounds=[].slice.call(document.querySelectorAll(".lazy-background"));if("IntersectionObserver"in window){let lazyBackgroundObserver=new IntersectionObserver(function(entries,observer){entries.forEach(function(entry){entry.isIntersecting&&(entry.target.classList.add("visible"),lazyBackgroundObserver.unobserve(entry.target))})});lazyBackgrounds.forEach(function(lazyBackground){lazyBackgroundObserver.observe(lazyBackground)})}
2//# sourceURL=https://6230942.fs1.hubspotusercontent-na1.net/hubfs/6230942/hub_generated/template_assets/1/166474356038/1790164203907/template_lazybg.js

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.