Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove timeout for updating image height

jxltombf4a9e9f3293
diff --git a/saleor/static/js/components/misc.js b/saleor/static/js/components/misc.js
index 00c3c4630a..cfd057f1d9 100644
--- a/saleor/static/js/components/misc.js
+++ b/saleor/static/js/components/misc.js
@@ -39,17 +39,6 @@ export default $(document).ready((e) => {
// Update product-image height when window is initialized
updateProductImageHeight();
- // Only update product-image height after 5ms when window size changes
- // This is to prevent window resize event is triggered multiple times at the same time.
- // This can also prevent that window is resized but bootstrap's responsive component
- // is not quick enough to resize too.
- $(window).resize(function() {
- if (this._timeout) clearTimeout(this._timeout);
- this._timeout = setTimeout(function() {
- $(this).trigger('resized');
- }, 5);
- });
-
// Update product-image height
$(window).bind('resized', function() {
updateProductImageHeight();