From 18ac241a9f03f5cfc14e717c5e81fbdd767b9a84 Mon Sep 17 00:00:00 2001
From: Henrik Askjer <henrik.askjer@uib.no>
Date: Wed, 17 Nov 2021 10:20:30 +0100
Subject: [PATCH] reduce number of articles loaded

---
 src/components/DictionaryView.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue
index c99220ea..576b54f7 100644
--- a/src/components/DictionaryView.vue
+++ b/src/components/DictionaryView.vue
@@ -433,13 +433,13 @@ export default {
         this.max_scroll = document.body.scrollHeight - window.window.innerHeight-1
       }
 
-      let offset = 10 * this.page
+      let offset = 5 * this.page
       this.page += 1
       if (!self.waiting_for_articles) {
         self.waiting_for_articles = true  
         Promise.all([
-          load_articles(this, this.query, offset, 10, "bm"),
-          load_articles(this, this.query, offset, 10, "nn")
+          load_articles(this, this.query, offset, 5, "bm"),
+          load_articles(this, this.query, offset, 5, "nn")
         ]).then(() => {
           self.waiting_for_articles = false
         })
-- 
GitLab