We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c5de04 commit c4e9202Copy full SHA for c4e9202
jquery.fullPage.js
@@ -1342,8 +1342,8 @@
1342
*/
1343
function lazyLoad(destiny){
1344
//Lazy loading images, videos and audios
1345
- var slide = $('.fp-slide.active', destiny);
1346
- if( slide ) {
+ var slide = destiny.find(SLIDE_ACTIVE_SEL);
+ if( slide.length ) {
1347
destiny = $(slide);
1348
}
1349
destiny.find('img[data-src], video[data-src], audio[data-src]').each(function(){
@@ -1638,7 +1638,7 @@
1638
1639
1640
destiny.addClass(ACTIVE).siblings().removeClass(ACTIVE);
1641
- lazyLoad(section);
+ lazyLoad(destiny);
1642
1643
if(!options.loopHorizontal && options.controlArrows){
1644
//hidding it for the fist slide, showing for the rest
0 commit comments