diff --git a/assets/js/script.js b/assets/js/script.js index 46960857a615b3381fb68891104575784f8bb54b..9a600cbb86dc04d75c3025a0daf320af1096db49 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -34,7 +34,7 @@ function onIntersection(entries) { const images = document.querySelectorAll('img[data-src]'); const config = { // If the image gets within 50px in the Y axis, start the download. - rootMargin: '50px 0px', + rootMargin: '400px 0px', threshold: 0.01 }; diff --git a/index.html b/index.html index 98ac1ed6d7d34c68d73422782b332193c64d63f3..af26d8339956b60dcf2155167ce292252747facd 100644 --- a/index.html +++ b/index.html @@ -139,7 +139,7 @@ function onIntersection(entries) { const images = document.querySelectorAll('img[data-src]'); const config = { // If the image gets within 50px in the Y axis, start the download. - rootMargin: '50px 0px', + rootMargin: '400px 0px', threshold: 0.01 }; diff --git a/privacy-policy/index.html b/privacy-policy/index.html index d552aba74391ea5df4498d59050209db54dfadf3..a74dbaa094df6a6f69a25eece94321ba9af62776 100644 --- a/privacy-policy/index.html +++ b/privacy-policy/index.html @@ -135,7 +135,7 @@ function onIntersection(entries) { const images = document.querySelectorAll('img[data-src]'); const config = { // If the image gets within 50px in the Y axis, start the download. - rootMargin: '50px 0px', + rootMargin: '400px 0px', threshold: 0.01 }; diff --git a/releases/index.html b/releases/index.html index 7af05d854fe6dad0a532046b203caf6c03ccab2a..42e13fbfb9eaabe68478e98222731426c2cbbb3a 100644 --- a/releases/index.html +++ b/releases/index.html @@ -131,7 +131,7 @@ function onIntersection(entries) { const images = document.querySelectorAll('img[data-src]'); const config = { // If the image gets within 50px in the Y axis, start the download. - rootMargin: '50px 0px', + rootMargin: '400px 0px', threshold: 0.01 };