![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/matelopsrp.com/wp-content/plugins/litespeed-cache/thirdparty/ |
<?php /** * The Third Party integration with AMP plugin. * * @since 2.9.8.6 * @package LiteSpeed_Cache * @subpackage LiteSpeed_Cache/thirdparty * @author LiteSpeed Technologies <info@litespeedtech.com> */ namespace LiteSpeed\Thirdparty ; defined( 'WPINC' ) || exit ; use \LiteSpeed\API ; class AMP { /** * CSS async will affect AMP result and * Lazyload will inject JS library which AMP not allowed * need to force set false before load * * @since 2.9.8.6 * @access public */ public static function preload() { if ( ! function_exists( 'is_amp_endpoint' ) || is_admin() || ! isset( $_GET[ 'amp' ] ) ) return; add_filter( 'litespeed_can_optm', '__return_false' ); // do_action( 'litespeed_conf_force', API::O_OPTM_CSS_ASYNC, false ); do_action( 'litespeed_conf_force', API::O_MEDIA_LAZY, false ); do_action( 'litespeed_conf_force', API::O_MEDIA_IFRAME_LAZY, false ); } }