Repos / pytaku / 325367ed21
commit 325367ed21a0abe89e5befdf2c7331af1540d571
Author: Bùi Thành Nhân <hi@imnhan.com>
Date: Mon Aug 24 18:57:57 2020 +0700
chapter route: load 3 pages at once
diff --git a/src/pytaku/static/js/routes/chapter.js b/src/pytaku/static/js/routes/chapter.js
index 16dad27..d98e36a 100644
--- a/src/pytaku/static/js/routes/chapter.js
+++ b/src/pytaku/static/js/routes/chapter.js
@@ -66,6 +66,9 @@ function Chapter(initialVNode) {
document.title = fullChapterName(chapter);
chapter = resp;
pendingPages = chapter.pages;
+ // start loading pages, 3 at a time:
+ loadNextPage();
+ loadNextPage();
loadNextPage();
})
.finally(() => {