Remove after load
This commit is contained in:
parent
f2486ac08f
commit
68853a5038
@ -46,7 +46,7 @@ photo = {
|
||||
lychee.imageview.show();
|
||||
setTimeout(function() {
|
||||
lychee.content.show();
|
||||
if (!mobileBrowser()) photo.preloadNext(photoID,albumID);
|
||||
if (!mobileBrowser()) photo.preloadNext(photoID, albumID);
|
||||
}, 300);
|
||||
|
||||
});
|
||||
@ -67,8 +67,9 @@ photo = {
|
||||
nextPhoto = album.json.content[photoID].nextPhoto;
|
||||
url = album.json.content[nextPhoto].url;
|
||||
|
||||
photo.cache = new Image();
|
||||
photo.cache.src = url;
|
||||
photo.cache = new Image();
|
||||
photo.cache.src = url;
|
||||
photo.cache.onload = function() { photo.cache = null };
|
||||
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user