Start loading the next page of posts immediately

This commit is contained in:
Toby Zerner 2015-07-27 12:12:07 +09:30
parent 798bcaa5f4
commit 0691e493a5

View File

@ -343,14 +343,14 @@ class PostStream extends mixin(Component, evented) {
};
redraw();
this.pagesLoading++;
this.loadPageTimeouts[start] = setTimeout(() => {
this.loadRange(start, end).then(() => {
redraw();
this.pagesLoading--;
});
}, this.pagesLoading ? 1000 : 0);
this.pagesLoading++;
}
/**