Hello everyone, today i will show you how to speed up your WordPress blog.
In this article, you will understand to solve how to defer parsing of JavaScript in WordPress blog. The others related WordPress speedup solved problems may be found here. What exactly is Defer parsing of JavaScript does? It minimizes the initial web page load of your blog page.
If you are wanting to boost up your blog page put the following code snippet
in your WordPress theme’s functions.php file before closing PHP tag ?> :
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 );
After done. Try out testing your WordPress blog using online website page speed testing tools. The tool that analyzes your page’s speed performance. Comment below if you have any question..