Added dont't preload on mobile to preload function

This commit is contained in:
Tobias Reich 2014-09-25 20:48:48 +02:00
parent 68853a5038
commit 4acf76181e
2 changed files with 6 additions and 2 deletions

View File

@ -46,7 +46,7 @@ photo = {
lychee.imageview.show();
setTimeout(function() {
lychee.content.show();
if (!mobileBrowser()) photo.preloadNext(photoID, albumID);
photo.preloadNext(photoID, albumID);
}, 300);
});
@ -59,6 +59,10 @@ photo = {
var nextPhoto,
url;
// Never preload on mobile devices with bare RAM and
// mostly mobile internet
if (!mobileBrowser()) return false;
if (album.json &&
album.json.content &&
album.json.content[photoID] &&

File diff suppressed because one or more lines are too long