Browse Source

Preload next photo when current photo data has been loaded

Tobias Reich 9 years ago
parent
commit
f2486ac08f
3 changed files with 4 additions and 2 deletions
  1. 0 1
      assets/js/lychee.js
  2. 4 1
      assets/js/photo.js
  3. 0 0
      assets/min/main.js

+ 0 - 1
assets/js/lychee.js

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

+ 4 - 1
assets/js/photo.js

@@ -44,7 +44,10 @@ photo = {
 			view.photo.init();
 
 			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 it is too large
+ 0 - 0
assets/min/main.js


Some files were not shown because too many files changed in this diff