Added dont't preload on mobile to preload function
This commit is contained in:
parent
68853a5038
commit
4acf76181e
@ -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
Loading…
Reference in New Issue
Block a user