From 6500ba84ac5fd1ebe47804d55c8e0a406ee46b6c Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Mon, 5 Mar 2018 18:28:15 +0100
Subject: [PATCH] Improved script performance

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

diff --git a/assets/js/script.js b/assets/js/script.js
index cd3d732..cfd5a62 100644
--- a/assets/js/script.js
+++ b/assets/js/script.js
@@ -35,7 +35,7 @@ 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: '150px 0px',
+    rootMargin: '400px 0px',
     threshold: 0.01
   };
 
diff --git a/index.html b/index.html
index 1d47945..00518f0 100644
--- a/index.html
+++ b/index.html
@@ -140,7 +140,7 @@ 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: '150px 0px',
+    rootMargin: '400px 0px',
     threshold: 0.01
   };
 
diff --git a/privacy-policy/index.html b/privacy-policy/index.html
index 48dc801..56dc47a 100644
--- a/privacy-policy/index.html
+++ b/privacy-policy/index.html
@@ -136,7 +136,7 @@ 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: '150px 0px',
+    rootMargin: '400px 0px',
     threshold: 0.01
   };
 
diff --git a/releases/index.html b/releases/index.html
index 76e0064..4be1d7f 100644
--- a/releases/index.html
+++ b/releases/index.html
@@ -132,7 +132,7 @@ 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: '150px 0px',
+    rootMargin: '400px 0px',
     threshold: 0.01
   };
 
-- 
GitLab