diff --git a/public/js/reader.js b/public/js/reader.js index 31bead0..a5d8e6b 100644 --- a/public/js/reader.js +++ b/public/js/reader.js @@ -58,7 +58,7 @@ const readerComponent = () => { // Preload Images this.preloadLookahead = +(localStorage.getItem('preloadLookahead') ?? 3); - const limit = Math.min(page + this.preloadLookahead, this.items.length + 1); + const limit = Math.min(page + this.preloadLookahead, this.items.length); for (let idx = page + 1; idx <= limit; idx++) { this.preloadImage(this.items[idx - 1].url); }