bibhamrokhanpin/wp-content/plugins/litespeed-cache/tpl/banner/ajax.php
2024-04-10 17:46:06 +05:45

18 lines
446 B
PHP

<?php
/**
* @deprecated 3.3 Will only show banner after user manually checked score
*/
namespace LiteSpeed ;
defined( 'WPINC' ) || exit ;
$url = Utility::build_url( Router::ACTION_HEALTH, Health::TYPE_SPEED, true ) ;
$url = htmlspecialchars_decode( $url ) ;
?>
<script>
document.addEventListener( 'DOMContentLoaded', function( event ) {
jQuery(document).ready( function() {
jQuery.get( '<?php echo $url; ?>' ) ;
} ) ;
} ) ;
</script>