Skip to content

Commit c4e9202

Browse files
committed
fixup! lazyLoad: per slide
1 parent 4c5de04 commit c4e9202

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jquery.fullPage.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1342,8 +1342,8 @@
13421342
*/
13431343
function lazyLoad(destiny){
13441344
//Lazy loading images, videos and audios
1345-
var slide = $('.fp-slide.active', destiny);
1346-
if( slide ) {
1345+
var slide = destiny.find(SLIDE_ACTIVE_SEL);
1346+
if( slide.length ) {
13471347
destiny = $(slide);
13481348
}
13491349
destiny.find('img[data-src], video[data-src], audio[data-src]').each(function(){
@@ -1638,7 +1638,7 @@
16381638
}
16391639

16401640
destiny.addClass(ACTIVE).siblings().removeClass(ACTIVE);
1641-
lazyLoad(section);
1641+
lazyLoad(destiny);
16421642

16431643
if(!options.loopHorizontal && options.controlArrows){
16441644
//hidding it for the fist slide, showing for the rest

0 commit comments

Comments
 (0)