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 );

Contact Us

Take control of your business

Enquire

Have an enquiry? Please fill out the form, or look to give us a call or email.

 

Australia

Location

2/288 Newmarket Rd Wilston

Queensland 4051

Australia

Phone

New Zealand

Location

P.O. Box 37339

Halswell Christchurch 8245

New Zealand

Phone

Share This