To Remove Query Strings from Static Resources in Genesis add below code snippet in theme's funtions.php file
function _remove_script_version( $src ){
$parts = explode( '?ver', $src );
return $parts[0];
}
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
This will help your site load faster
No comments:
Post a Comment