HEX
Server: Apache
System: Linux pdx1-shared-a2-07 6.6.116-grsec-jammy-dirty #1 SMP Sat Nov 8 00:02:42 UTC 2025 x86_64
User: dh_kieuhb (23365667)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/dh_kieuhb/blwealthmanagement.com/wp-content/plugins/elementor/core/frontend/performance.php
<?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;
	}
}