wordpress/wp-content/themes/basic/themify/themify-utils.php
/**
 * load all themify,plugins and theme js with attribute defer(without blocking page render)
 *
 * @since 3.2.3
 */
load all themify,plugins and theme js with attribute defer(without blocking page render)
@since 3.2.3
load all themify plugins and theme js with attribute defer ( without blocking page render ) @since 3 . 2 . 3
function themify_defer_js($tag,$handle,$src){
	if ( ! empty( $tag ) && strpos( $tag, ' defer' ) === false ) {
		static $isJq=null;
		if($isJq===null){
			$isJq = themify_check( 'setting-jquery', true ) && ( !is_admin() || themify_is_ajax() ) && !is_customize_preview() && !themify_is_login_page();
		}
		if($isJq===true || $handle === 'admin-bar' || Themify_Enqueue_Assets::is_themify_file( $src, $handle ) || in_array( $handle, Themify_Enqueue_Assets::getKnownJs(), true )){
			static $ex=null;
			if($ex===null){
				$ex = apply_filters( 'themify_defer_js_exclude', array() );
			}
			if(!in_array( $handle, $ex,true)){
				$tag = str_replace(' src', ' defer="defer" src', $tag);
			}
		}
	}
    return $tag;
}
function themify_defer_js ( $ tag , $ handle , $ src ) { if ( ! empty ( $ tag ) && strpos ( $ tag , ' defer' ) === false ) { static $ isJq = null ; if ( $ isJq === null ) { $ isJq = themify_check ( 'setting-jquery' , true ) && ( ! is_admin ( ) || themify_is_ajax ( ) ) && ! is_customize_preview ( ) && ! themify_is_login_page ( ) ; } if ( $ isJq === true || $ handle === 'admin-bar' || Themify_Enqueue_Assets :: is_themify_file ( $ src , $ handle ) || in_array ( $ handle , Themify_Enqueue_Assets :: getKnownJs ( ) , true ) ) { static $ ex = null ; if ( $ ex === null ) { $ ex = apply_filters ( 'themify_defer_js_exclude' , array ( ) ) ; } if ( ! in_array ( $ handle , $ ex , true ) ) { $ tag = str_replace ( ' src' , ' defer="defer" src' , $ tag ) ; } } } return $ tag ; }
load all themify,plugins and theme js with attribute defer(without blocking page render)
 @since 3.2.3
load all themify plugins and theme js with attribute defer ( without blocking page render ) @since 3 . 2 . 3