1Flatsome.behavior('wp-rocket-lazy-load-sliders', { 2 attach: function (context) { 3 jQuery('.slider', context).each(function (index, element) { 4 var $element = jQuery(element); 5 var waypoint = $element.waypoint(function (direction) { 6 if($element.hasClass('slider-lazy-load-active')) return; 7 setTimeout(function(){ 8 $element.imagesLoaded( function() { 9 if($element.flickity) $element.flickity('resize'); 10 $element.addClass('slider-lazy-load-active'); 11 }); 12 }, 300); 13 }, { offset: '90%' }); 14 }); 15 } 16}); 17 18Flatsome.behavior('wp-rocket-lazy-load-packery', { 19 attach: function (context) { 20 jQuery('.has-packery .lazy-load', context).waypoint(function (direction) { 21 var $element = jQuery(this.element); 22 $element.imagesLoaded( function() { 23 jQuery('.has-packery').packery('layout'); 24 }); 25 }, { offset: '90%' }); 26 } 27});
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.