Hi Team
Has there been any change in version 4.28 regarding javascripts?
I ask why I use defer, excluding the files below for a long time with the theme:
if (!(is_admin() )) {
function defer_parsing_of_js ( $url ) {
if ( FALSE === strpos( $url, ‘.js’ ) ) return $url;
if ( strpos( $url, ‘jquery.js’ ) ) return $url;
if ( strpos( $url, ‘jquery.min.js’ ) ) return $url;
if ( strpos( $url, ‘head.min.js’ ) ) return $url;
return “$url’ defer=’defer”;
}
But when upgrading to version 4.28, I noticed that the first image of the products in swap mode ends up going blank.
Removing the defer everything returns to normal. I use the function because the wp rocket does not adapt well activating the defer loading
Best regards
Rudimar