mirror of
https://github.com/flarum/core.git
synced 2025-02-25 19:53:48 +01:00
Start loading the next page of posts immediately
This commit is contained in:
parent
153a5b7ce4
commit
3467aa9e90
@ -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