HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/karalev/www/wp-content/themes/kadence/assets/js/src/product-cls.js
/**
 * 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 );
		} );
	} );
} );