I use attribute "data-bg" (jquery.lazyloadxt.bg.js) and its working fine. Now I must via click() change all backgroud-images to another folder. Easy with
$(...).removeAttr('style').attr('data-bg', url);
images get removed, but LazyLoadXT not refresh for new images (only images that was not in viewport and not updated with lazy before). I have tried call $(document).lazyLoadXT(); but thats not help me. Any idea?
This works only for images in viewport, all other images get lost:
I use attribute "data-bg" (jquery.lazyloadxt.bg.js) and its working fine. Now I must via click() change all backgroud-images to another folder. Easy with
$(...).removeAttr('style').attr('data-bg', url);
images get removed, but LazyLoadXT not refresh for new images (only images that was not in viewport and not updated with lazy before). I have tried call $(document).lazyLoadXT(); but thats not help me. Any idea?
This works only for images in viewport, all other images get lost:
SOLUTION:
$(....).data('lazied', 0).removeAttr('style').attr('data-bg', url);