PageSourceSearch

https://lapdatcamerafuda.com/assets/lapdatcamerafuda.com/wp-conten…/flatsome-lazy-load-a1addf7ce9.js

js lapdatcamerafuda.com collected 2026-10-04 17:42:15 UTC 3,706 bytes, 122 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opener = _____WB$wombat$assign$function_____("opener");
10/* global objectFitImages */
11;(function () {
12  function createObserver (handler) {
13    return new IntersectionObserver(function (entries) {
14      for (var i = 0; i < entries.length; i++) {
15        handler(entries[i])
16      }
17    }, {
18      rootMargin: '0px',
19      threshold: 0.1
20    })
21  }
22
23  Flatsome.behavior('lazy-load-images', {
24    attach: function (context) {
25      var observer = createObserver(function (entry) {
26        if (entry.intersectionRatio > 0) {
27          observer.unobserve(entry.target)
28
29          var $el = jQuery(entry.target)
30          var src = $el.data('src')
31          var srcset = $el.data('srcset')
32
33          if ($el.hasClass('lazy-load-active')) return
34          else $el.addClass('lazy-load-active')
35
36          if (src) $el.attr('src', src)
37          if (srcset) $el.attr('srcset', srcset)
38
39          $el.imagesLoaded(function () {
40            $el.removeClass('lazy-load')
41            if (typeof objectFitImages !== 'undefined') {
42              objectFitImages($el)
43            }
44          })
45        }
46      })
47
48      jQuery('.lazy-load', context).each(function (i, el) {
49        observer.observe(el)
50      })
51    }
52  })
53
54  Flatsome.behavior('lazy-load-sliders', {
55    attach: function (context) {
56      var observer = createObserver(function (entry) {
57        if (entry.intersectionRatio > 0) {
58          observer.unobserve(entry.target)
59
60          var $el = jQuery(entry.target)
61
62          if ($el.hasClass('slider-lazy-load-active')) return
63          else $el.addClass('slider-lazy-load-active')
64
65          $el.imagesLoaded(function () {
66            if ($el.hasClass('flickity-enabled')) {
67              $el.flickity('resize')
68            }
69          })
70        }
71      })
72
73      jQuery('.slider', context).each(function (i, el) {
74        observer.observe(el)
75      })
76    }
77  })
78
79  Flatsome.behavior('lazy-load-packery', {
80    attach: function (context) {
81      var observer = createObserver(function (entry) {
82        if (entry.intersectionRatio > 0) {
83          observer.unobserve(entry.target)
84
85          var $el = jQuery(entry.target)
86
87          $el.imagesLoaded(function () {
88            jQuery('.has-packery').packery('layout') // why global selector?
89          })
90        }
91      })
92
93      jQuery('.has-packery .lazy-load', context).each(function (i, el) {
94        observer.observe(el)
95      })
96    }
97  })
98})()
99
100}
101
102/*
103     FILE ARCHIVED ON 06:04:57 Dec 09, 2022 AND RETRIEVED FROM THE
104     INTERNET ARCHIVE ON 09:09:35 Aug 11, 2026.
105     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
106
107     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
108     SECTION 108(a)(3)).
109*/
110/*
111playback timings (ms):
112  captures_list: 1.183
113  exclusion.robots: 0.144
114  exclusion.robots.policy: 0.127
115  esindex: 0.014
116  cdx.remote: 99.661
117  LoadShardBlock: 166.072 (3)
118  PetaboxLoader3.resolve: 142.341 (4)
119  PetaboxLoader3.datanode: 160.513 (5)
120  load_resource: 394.476
121  loaddict: 271.483
122*/

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.