Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Hi 2.0.9 Adds lazy-loading of thumbnails, that load as needed during page scroll. Using my own phplugin for album/page loading how can I implement this new option to my custom php function? Currently, my page loads all without the lazy load since I bypass the Backlight loading. Is there specific function to call that is exposed for custom work?
Thx
Michael
Offline
Hi Michael,
Looking at the rendered gallery source code, it looks like Matt is using lazysizes as the lazy loader. Adding
class="lazyload"
to the thumbnails and using data-src instead of src should do the trick.
Last edited by Daniel Leu (2019-06-24 03:37:14)
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline