Jquery lazyload with ajax

后端 未结 8 1475
-上瘾入骨i
-上瘾入骨i 2021-01-17 23:26

I use lazyload() on my ecommerce website. lazyload() works great. I use this code to do that:

$(function(){
  $(\"img.lazy\").lazyload({ 
  effect : \"fadeIn         


        
8条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-18 00:07

    I use the code below and it worked:

    $(document).on('ajaxStop', function() {
       $("img.lazy").lazyload({
            effect: 'fadeIn'
        });
    });
    

提交回复
热议问题