uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
.
/
old
/
public_html
/
wp-content
/
.
/
plugins
/
wp-rocket
/
inc
/
admin
/
..
/
front
/
deferred-js.php
/
/
<?php defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); /** * Defer all JS files. * * @since 2.10 * @author Remy Perona * * @param string $buffer HTML content. * @return string Updated HTML content */ function rocket_defer_js( $buffer ) { if ( ! get_rocket_option( 'defer_all_js' ) ) { return $buffer; } if ( is_rocket_post_excluded_option( 'defer_all_js' ) ) { return $buffer; } // Get all JS files with this regex. preg_match_all( '#<script(.*)src=[\'|"]([^\'|"]+\.js?.+)[\'|"](.*)></script>#iU', $buffer, $tags_match ); if ( ! isset( $tags_match[0] ) ) { return $buffer; } $exclude_defer_js = array_flip( get_rocket_exclude_defer_js() ); foreach ( $tags_match[0] as $i => $tag ) { // Strip query args. $path = rocket_extract_url_component( $tags_match[2][ $i ] , PHP_URL_PATH ); // Check if this file should be deferred. if ( isset( $exclude_defer_js[ $path ] ) ) { continue; } // Don't add defer if already async. if ( false !== strpos( $tags_match[1][ $i ], 'async' ) || false !== strpos( $tags_match[3][ $i ], 'async' ) ) { continue; } // Don't add defer if already defer. if ( false !== strpos( $tags_match[1][ $i ], 'defer' ) || false !== strpos( $tags_match[3][ $i ], 'defer' ) ) { continue; } $deferred_tag = str_replace( '></script>', ' defer></script>', $tag ); $buffer = str_replace( $tag, $deferred_tag, $buffer ); } return $buffer; } add_filter( 'rocket_buffer', 'rocket_defer_js', 14 );
/home/batcwwjx/./old/public_html/wp-content/./plugins/wp-rocket/inc/admin/../front/deferred-js.php