document.addEventListener('DOMContentLoaded', (event) => { const throttleQuickview = moi.throttle(function(){ moi.popupProductPicture({ handle: $(this).data("handle"), data_from: $(this).data("from") }); }, 1000); $(".product_view").on("click",throttleQuickview); $('html,body').find('img[data-src]').each(function(){ addLazyImages($(this)) }) })