/home/techb158/balacoffee.com/wp-content/plugins/wp-rocket/inc/deprecated
Edit: /home/techb158/balacoffee.com/wp-content/plugins/wp-rocket/inc/deprecated/3.8.php (10174B)
get( 'Name' ) ) {
return false;
}
if ( empty( $avada_options['lazy_load'] ) ) {
return false;
}
if ( ! empty( $avada_options['lazy_load'] && 'avada' !== $avada_options['lazy_load'] ) ) {
return false;
}
return true;
}
/**
* Clears WP Rocket's cache after Avada's Fusion Patcher flushes their caches
*
* @since 3.8.1 deprecated
* @since 3.3.5
*
* @return void
*/
function rocket_avada_clear_cache_fusion_patcher() {
_deprecated_function( __FUNCTION__ . '()', '3.8.1', 'WP_Rocket\ThirdParty\Themes\Avada::clear_cache_fusion_patcher()' );
rocket_clean_domain();
}
/**
* Defer all JS files.
*
* @since 3.8 deprecated
* @since 2.10
* @author Remy Perona
*
* @param string $buffer HTML content.
* @return string Updated HTML content
*/
function rocket_defer_js( $buffer ) {
_deprecated_function( __FUNCTION__ . '()', '3.8', 'WP_Rocket\Engine\Optimization\DeferJS\DeferJS::defer_js()' );
if ( ( defined( 'DONOTROCKETOPTIMIZE' ) && DONOTROCKETOPTIMIZE ) || ( defined( 'DONOTASYNCCSS' ) && DONOTASYNCCSS ) ) {
return;
}
if ( ! get_rocket_option( 'defer_all_js' ) ) {
return $buffer;
}
if ( is_rocket_post_excluded_option( 'defer_all_js' ) ) {
return $buffer;
}
$buffer_nocomments = preg_replace( '//Uis', '', $buffer );
// Get all JS files with this regex.
preg_match_all( '#