| Server IP : 103.191.208.88 / Your IP : 216.73.216.44 Web Server : Microsoft-IIS/10.0 System : Windows NT COSMIC 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_1831(willswel_) ( 0) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/Inetpub/vhosts/willswell.com/httpdocs/wp-content/plugins/elementor/core/frontend/ |
Upload File : |
<?php
namespace Elementor\Core\Frontend;
use Elementor\Plugin;
class Performance {
private static $use_style_controls = false;
private static $is_frontend = null;
public static function set_use_style_controls( bool $is_use ): void {
static::$use_style_controls = $is_use;
}
public static function is_use_style_controls(): bool {
return static::$use_style_controls;
}
public static function should_optimize_controls() {
if ( null === static::$is_frontend ) {
static::$is_frontend = (
! is_admin()
&& ! Plugin::$instance->preview->is_preview_mode()
&& ! defined( 'REST_REQUEST' )
);
}
return static::$is_frontend;
}
}