| Server IP : 51.254.39.36 / Your IP : 216.73.217.109 Web Server : Microsoft-IIS/10.0 System : Windows NT WIN-12GDIEC772I 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_21(allbatf787) ( 0) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/allbat-sb.fr/httpdocs/wp-content/themes/kadence/assets/js/src/ |
Upload File : |
/**
* File product-cls.js.
* Sets a fixed height while loading the product image slider to fix an issue with CLS. This should ultimately be fixed by wooocommerce/flexslider
*/
jQuery( function( $ ) {
$( '.woocommerce-product-gallery.gallery-has-thumbnails' ).each( function() {
var gallery_wrap = $( this );
gallery_wrap.height( gallery_wrap.height() );
gallery_wrap.on( 'wc-product-gallery-after-init', function (event) {
setTimeout( function() {
gallery_wrap.height( '' );
}, 500 );
} );
} );
} );