LiteSpeed lazyload : is there an equivalent to rootMargin ?
-
Hi,
Follow up to this feed, is it possible to preload images and iframes before they enter into the screen ?
With the Intersection Observer API, you can do so by setting a rootMargin parameter so that loading is triggered before the lazy-loaded elements enters the screen.
Does the litespeed plugin allows that ? how ?
Thank you for help.
Best regards,
Edit :
To complete, here is what I’ve found :
rootMargin is defined in js/lazyload.lib.js by :
rootMargin:t.thresholds||t.threshold+"px"
So, I guess my question can also be interpreted as : “where can I set the t.threshold value ?”
Thank you
- This topic was modified 2 years, 8 months ago by .
- This topic was modified 2 years, 8 months ago by .
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘LiteSpeed lazyload : is there an equivalent to rootMargin ?’ is closed to new replies.