Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/jail.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
callback : null,
callbackAfterEachImage : null,
placeholder : false,
loadHiddenImages : false
loadHiddenImages : false,
loadAllImages : false
},

// current stack of images
Expand Down Expand Up @@ -288,7 +289,7 @@
}

// Load the image if it is not hidden and visible in the screen
if( isVisible && _isInTheScreen( container, $img, options.offset ) ) {
if( isVisible && (_isInTheScreen( container, $img, options.offset ) || options.loadAllImages )) {
_loadImage( options, $img );
}
}
Expand Down Expand Up @@ -420,4 +421,4 @@
};

return $.jail;
}));
}));