mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:50:24 +08:00
Start loading the next page of posts immediately
This commit is contained in:
parent
798bcaa5f4
commit
0691e493a5
@ -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++;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user