Repos / pytaku / 77e86cbc8d
commit 77e86cbc8d1e7f89f966d1a0a98bb3f4d78de44a
Author: Bùi Thành Nhân <hi@imnhan.com>
Date:   Wed Aug 26 21:57:57 2020 +0700

    make it clear only 3 images are loaded at a time

diff --git a/src/pytaku/static/js/routes/chapter.js b/src/pytaku/static/js/routes/chapter.js
index 4019fe2..a5782f6 100644
--- a/src/pytaku/static/js/routes/chapter.js
+++ b/src/pytaku/static/js/routes/chapter.js
@@ -5,6 +5,10 @@ const LoadingPlaceholder = {
   view: () => m("h2", [m("i.icon.icon-loader.spin")]),
 };
 
+const PendingPlaceholder = {
+  view: () => m("h2", [m("i.icon.icon-loader")]),
+};
+
 const RetryImgButton = {
   view: (vnode) => {
     return m(Button, {
@@ -178,7 +182,7 @@ function Chapter(initialVNode) {
                   : null,
               ])
             ),
-            pendingPages.map((page) => m(LoadingPlaceholder)),
+            pendingPages.map((page) => m(PendingPlaceholder)),
           ]
         ),
         buttons,