Defer Parsing of javascript
-
Good day Folks,
We are trying to optimize the load speed on our website. It seems that deferring parsing of javascript is keeping us to load our site faster.
We added this code with no success:
function defer_parsing_of_js ( $url ) {
if ( FALSE === strpos( $url, ‘.js’ ) ) return $url;
if ( strpos( $url, ‘jquery.js’ ) ) return $url;
return “$url’ defer “;
}
add_filter( ‘clean_url’, ‘defer_parsing_of_js’, 11, 1 );Is there a specific configuration in the plugin that we need to follow to help us out with this?
We really don’t care about the scoring, but we do have a need for speed.
In advance, thank you for your help and interest.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Defer Parsing of javascript’ is closed to new replies.