diff --git a/public/js/grocy.js b/public/js/grocy.js index cf8fa925..fe64b9c5 100644 --- a/public/js/grocy.js +++ b/public/js/grocy.js @@ -560,6 +560,11 @@ ResizeIframes = function() { $("iframe.embed-responsive").each(function() { + if (!$(this).isVisibleInViewport()) + { + return; + } + var desiredHeight = $(this)[0].contentWindow.document.body.scrollHeight; if (desiredHeight == 0) {