Code conflict?
-
Would the following code be of any benefit in conjunction with autoptimize? Could it cause problems?
Thanks
/*// Defer Javascripts
// Defer jQuery Parsing using the HTML5 defer property
if (!(is_admin() )) {
function defer_parsing_of_js ( $url ) {
if ( FALSE === strpos( $url, ‘.js’ ) ) return $url;
if ( strpos( $url, ‘jquery.js’ ) ) return $url;
// return “$url’ defer “;
return “$url’ defer onload='”;
}
add_filter( ‘clean_url’, ‘defer_parsing_of_js’, 11, 1 );
}*/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Code conflict?’ is closed to new replies.