function defer_parsing_of_js( $url ) { if ( is_user_logged_in() ) return $url; //don't break WP Admin if ( FALSE === strpos( $url, '.js' ) ) return $url; if ( strpos( $url, 'jquery.js' ) ) return $url; return str_replace( ' src', ' defer src', $url ); } add_filter( 'script_loader_tag', 'defer_parsing_of_js', 10 );

Phone System Update, what’s new?

COSTAR Support

February 24, 2021

You may also like…

COSTAR Optimisation Reports

COSTAR Optimisation Reports

What is an Optimisation Report? Optimisation Reports are the result of a proactive and free initiative undertaken by...

Share This