Skip to content
Snippets Groups Projects
Commit 18ac241a authored by Henrik Askjer's avatar Henrik Askjer
Browse files

reduce number of articles loaded

parent cf901d0d
No related branches found
No related tags found
No related merge requests found
...@@ -433,13 +433,13 @@ export default { ...@@ -433,13 +433,13 @@ export default {
this.max_scroll = document.body.scrollHeight - window.window.innerHeight-1 this.max_scroll = document.body.scrollHeight - window.window.innerHeight-1
} }
let offset = 10 * this.page let offset = 5 * this.page
this.page += 1 this.page += 1
if (!self.waiting_for_articles) { if (!self.waiting_for_articles) {
self.waiting_for_articles = true self.waiting_for_articles = true
Promise.all([ Promise.all([
load_articles(this, this.query, offset, 10, "bm"), load_articles(this, this.query, offset, 5, "bm"),
load_articles(this, this.query, offset, 10, "nn") load_articles(this, this.query, offset, 5, "nn")
]).then(() => { ]).then(() => {
self.waiting_for_articles = false self.waiting_for_articles = false
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment