summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-01 11:45:11 +0300
committerAndrew Dolgov <[email protected]>2018-12-01 11:45:11 +0300
commit069ecb6c2e1c5580a4bd1d3791c7650c7adfd09f (patch)
treef4a9f87a2759bc6f31e9918120499f551e7b9132 /js
parent710d06a2880706d96e19f93076bd2c34ed531b86 (diff)
viewfeed: catchup batched articles before opening next feed
Diffstat (limited to 'js')
-rw-r--r--js/feedlist.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/js/feedlist.js b/js/feedlist.js
index d67fcc69c..2d4e9f9b1 100644
--- a/js/feedlist.js
+++ b/js/feedlist.js
@@ -145,9 +145,7 @@ function viewfeed(params) {
));
}
- const timeout_ms = can_wait ? 250 : 0;
- _viewfeed_timeout = setTimeout(() => {
-
+ catchupBatchedArticles(() => {
xhrPost("backend.php", query, (transport) => {
try {
setFeedExpandoIcon(feed, is_cat, 'images/blank_icon.gif');
@@ -157,9 +155,7 @@ function viewfeed(params) {
exception_error(e);
}
});
-
- }, timeout_ms); // Wait 250ms
-
+ });
}
function feedlist_init() {