From 4ed8536ba2288b7e8c722cdd6f539ef3142df10a Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Mon, 5 Mar 2018 18:27:36 +0100
Subject: [PATCH] Improved script performance

---
 assets/js/script.js       | 3 ++-
 index.html                | 3 ++-
 privacy-policy/index.html | 3 ++-
 releases/index.html       | 3 ++-
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/assets/js/script.js b/assets/js/script.js
index 08f277d..cd3d732 100644
--- a/assets/js/script.js
+++ b/assets/js/script.js
@@ -35,7 +35,8 @@ document.addEventListener("DOMContentLoaded", () => {
   const images = document.querySelectorAll('img[data-src]');
   const config = {
     // If the image gets within 50px in the Y axis, start the download.
-    rootMargin: '200px 0px', threshold: 0.01
+    rootMargin: '150px 0px',
+    threshold: 0.01
   };
 
 // The observer for the images on the page
diff --git a/index.html b/index.html
index c62bd8c..1d47945 100644
--- a/index.html
+++ b/index.html
@@ -140,7 +140,8 @@ or just look fancy.</p></div><div class="nine wide column"><div class="ui one do
   const images = document.querySelectorAll('img[data-src]');
   const config = {
     // If the image gets within 50px in the Y axis, start the download.
-    rootMargin: '200px 0px', threshold: 0.01
+    rootMargin: '150px 0px',
+    threshold: 0.01
   };
 
 // The observer for the images on the page
diff --git a/privacy-policy/index.html b/privacy-policy/index.html
index 6a27750..48dc801 100644
--- a/privacy-policy/index.html
+++ b/privacy-policy/index.html
@@ -136,7 +136,8 @@ server, and cannot be policed by us.
   const images = document.querySelectorAll('img[data-src]');
   const config = {
     // If the image gets within 50px in the Y axis, start the download.
-    rootMargin: '200px 0px', threshold: 0.01
+    rootMargin: '150px 0px',
+    threshold: 0.01
   };
 
 // The observer for the images on the page
diff --git a/releases/index.html b/releases/index.html
index 27a00ad..76e0064 100644
--- a/releases/index.html
+++ b/releases/index.html
@@ -132,7 +132,8 @@ Alpha versions are available <a href="https://s3.kuschku.de/minio/releases/quass
   const images = document.querySelectorAll('img[data-src]');
   const config = {
     // If the image gets within 50px in the Y axis, start the download.
-    rootMargin: '200px 0px', threshold: 0.01
+    rootMargin: '150px 0px',
+    threshold: 0.01
   };
 
 // The observer for the images on the page
-- 
GitLab