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();
|
lychee.imageview.show();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
lychee.content.show();
|
lychee.content.show();
|
||||||
if (!mobileBrowser()) photo.preloadNext(photoID, albumID);
|
photo.preloadNext(photoID, albumID);
|
||||||
}, 300);
|
}, 300);
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -59,6 +59,10 @@ photo = {
|
|||||||
var nextPhoto,
|
var nextPhoto,
|
||||||
url;
|
url;
|
||||||
|
|
||||||
|
// Never preload on mobile devices with bare RAM and
|
||||||
|
// mostly mobile internet
|
||||||
|
if (!mobileBrowser()) return false;
|
||||||
|
|
||||||
if (album.json &&
|
if (album.json &&
|
||||||
album.json.content &&
|
album.json.content &&
|
||||||
album.json.content[photoID] &&
|
album.json.content[photoID] &&
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user