PluginProbe ʕ •ᴥ•ʔ
LiteSpeed Cache / 7.6.2
LiteSpeed Cache v7.6.2
trunk 1.0.15 1.9.1.1 2.9.9.2 3.6.4 4.6 5.7.0.1 6.5.4 7.0.0.1 7.0.1 7.1 7.2 7.3 7.3.0.1 7.4 7.5 7.5.0.1 7.6 7.6.1 7.6.2 7.7 7.8 7.8.0.1 7.8.1
litespeed-cache / tpl / banner / ajax.php
litespeed-cache / tpl / banner Last commit date
ajax.php 7 months ago cloud_news.tpl.php 7 months ago cloud_promo.tpl.php 7 months ago new_version.php 7 months ago new_version_dev.tpl.php 7 months ago score.php 7 months ago slack.php 7 months ago
ajax.php
24 lines
1 <?php
2 /**
3 * Health Check Script
4 *
5 * Triggers a health check request for speed when the document is loaded.
6 *
7 * @package LiteSpeed
8 * @since 1.0.0
9 * @deprecated 3.3 Will only show banner after user manually checked score
10 */
11
12 namespace LiteSpeed;
13
14 defined( 'WPINC' ) || exit;
15
16 $url = Utility::build_url( Router::ACTION_HEALTH, Health::TYPE_SPEED, true, null, array(), true );
17 ?>
18 <script>
19 document.addEventListener('DOMContentLoaded', function() {
20 jQuery(document).ready( function() {
21 jQuery.get( '<?php echo $url; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>' ) ;
22 } ) ;
23 });
24 </script>