What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-15 20:40:11
defer parsing of javascript avada
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 s... Add solution -
Javascript 2021-09-25 08:39:02
defer parsing of javascript wordpress
// Only for Javascript 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_re... Add solution
Best helpers
Ranking is empty