From 4b796eebe0aec9697f5440fdf87ff37ba5fda10d Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 24 May 2019 15:52:48 -0400 Subject: [PATCH] UX: Try tweaking how soon images are lazily loaded --- app/assets/javascripts/discourse/lib/lazy-load-images.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/lazy-load-images.js.es6 b/app/assets/javascripts/discourse/lib/lazy-load-images.js.es6 index 4be70c109c9..cd0c8e7da2f 100644 --- a/app/assets/javascripts/discourse/lib/lazy-load-images.js.es6 +++ b/app/assets/javascripts/discourse/lib/lazy-load-images.js.es6 @@ -1,5 +1,5 @@ const OBSERVER_OPTIONS = { - rootMargin: "50%" // load images slightly before they're visible + rootMargin: "66%" // load images slightly before they're visible }; // Min size in pixels for consideration for lazy loading