From 069ecb6c2e1c5580a4bd1d3791c7650c7adfd09f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 1 Dec 2018 11:45:11 +0300 Subject: [PATCH] viewfeed: catchup batched articles before opening next feed --- js/feedlist.js | 8 ++------ 1 file 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() {