Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 2019-06-24 01:38:40

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 134
Website

Lazy-Loading of Thumbnails with Custom album/page load

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

#2 2019-06-24 03:26:58

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,379
Website

Re: Lazy-Loading of Thumbnails with Custom album/page load

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

Offline

#3 2019-06-24 22:03:30

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 134
Website

Re: Lazy-Loading of Thumbnails with Custom album/page load

Thanks Daniel for the information.

Offline

Board footer

Powered by FluxBB