HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: /var/www/Gosurya/wp/wp-content/themes/flatsome/inc/integrations/wp-rocket/flatsome-wp-rocket.js
Flatsome.behavior('wp-rocket-lazy-load-sliders', {
  attach: function (context) {
     jQuery('.slider', context).each(function (index, element) {
        var $element = jQuery(element);
        var waypoint = $element.waypoint(function (direction) {
          if($element.hasClass('slider-lazy-load-active')) return;
          setTimeout(function(){
            $element.imagesLoaded( function() {
               if($element.flickity) $element.flickity('resize');
               $element.addClass('slider-lazy-load-active');
            });
          }, 300);
         }, { offset: '90%' });
      });
  }
});

Flatsome.behavior('wp-rocket-lazy-load-packery', {
  attach: function (context) {
       jQuery('.has-packery .lazy-load', context).waypoint(function (direction) {
          var $element = jQuery(this.element);
          $element.imagesLoaded( function() {
              jQuery('.has-packery').packery('layout');
          });
      }, { offset: '90%' });
  }
});