Preload next photo when current photo data has been loaded

This commit is contained in:
Tobias Reich 2014-09-25 20:35:03 +02:00
parent 27d7ca75f3
commit f2486ac08f
3 changed files with 5 additions and 3 deletions

View File

@ -189,7 +189,6 @@ var lychee = {
album.load(albumID, true); album.load(albumID, true);
} }
photo.load(photoID, albumID); photo.load(photoID, albumID);
if (!mobileBrowser()) photo.preloadNext(photoID,albumID);
} else if (albumID) { } else if (albumID) {

View File

@ -44,7 +44,10 @@ photo = {
view.photo.init(); view.photo.init();
lychee.imageview.show(); lychee.imageview.show();
setTimeout(function() { lychee.content.show() }, 300); setTimeout(function() {
lychee.content.show();
if (!mobileBrowser()) photo.preloadNext(photoID,albumID);
}, 300);
}); });

File diff suppressed because one or more lines are too long