PageSourceSearch

https://mothertreeproject.org/wp-content/cache/min/1/wp-content/th…/flatsome-lazy-load.js?ver=1790206103

js mothertreeproject.org collected 2026-09-24 19:27:04 UTC 1,609 bytes, 22 lines download raw bytes

1(function(){function createObserver(handler){return new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++){handler(entries[i])}},{rootMargin:'0px',threshold:0.1})}
2Flatsome.behavior('lazy-load-images',{attach:function(context){var observer=createObserver(function(entry){if(entry.intersectionRatio>0){observer.unobserve(entry.target)
3var $el=jQuery(entry.target)
4var src=$el.data('src')
5var srcset=$el.data('srcset')
6if($el.hasClass('lazy-load-active'))return
7else $el.addClass('lazy-load-active')
8if(src)$el.attr('src',src)
9if(srcset)$el.attr('srcset',srcset)
10$el.imagesLoaded(function(){$el.removeClass('lazy-load')
11if(typeof objectFitImages!=='undefined'){objectFitImages($el)}})}})
12jQuery('.lazy-load',context).each(function(i,el){observer.observe(el)})}})
13Flatsome.behavior('lazy-load-sliders',{attach:function(context){var observer=createObserver(function(entry){if(entry.intersectionRatio>0){observer.unobserve(entry.target)
14var $el=jQuery(entry.target)
15if($el.hasClass('slider-lazy-load-active'))return
16else $el.addClass('slider-lazy-load-active')
17$el.imagesLoaded(function(){if($el.hasClass('flickity-enabled')){$el.flickity('resize')}})}})
18jQuery('.slider',context).each(function(i,el){observer.observe(el)})}})
19Flatsome.behavior('lazy-load-packery',{attach:function(context){var observer=createObserver(function(entry){if(entry.intersectionRatio>0){observer.unobserve(entry.target)
20var $el=jQuery(entry.target)
21$el.imagesLoaded(function(){jQuery('.has-packery').packery('layout')})}})
22jQuery('.has-packery .lazy-load',context).each(function(i,el){observer.observe(el)})}})})()

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.