Browse Source

Added dont't preload on mobile to preload function

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

+ 5 - 1
assets/js/photo.js

@@ -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 it is too large
+ 0 - 0
assets/min/main.js


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