static::EXPERIMENT_NAME, 'title' => esc_html__( 'Lazy Load Background Images', 'elementor' ), 'tag' => esc_html__( 'Performance', 'elementor' ), 'description' => esc_html__( 'Lazy loading images that are not in the viewport improves initial page load performance and user experience. By activating this experiment all background images except the first one on your page will be lazy loaded to improve your LCP score', 'elementor' ), 'release_status' => Experiments_Manager::RELEASE_STATUS_STABLE, 'default' => Experiments_Manager::STATE_ACTIVE, 'generator_tag' => true, ]; } public function __construct() { parent::__construct(); add_action( 'init', [ $this, 'init' ] ); } public function init() { add_action( 'wp_head', function() { if ( ! $this->should_lazyload() ) { return; } ?> should_lazyload() ) { return; } ?> preview->is_preview_mode() && ! Plugin::$instance->editor->is_edit_mode(); } }