XF2 Add-on Lazy Load [img] 2.5.1

virgilio183

Well-known member
Pro
Master
Diamond
Elite
Joined
May 16, 2021
Messages
25,509
Reaction score
29,691
Points
113
NullCash
578,386
Compatible XF Versions 2.1 , 2.2 Visible Branding No

b2a05e86426e3.png



A zero query method for per user-group lazy loading of the and
  • Enable Outside threads/Conversations
    • permits the lazy loading bbcode injection to run outside of those contexts. Inside those context it will still respect permissions.
  • Force Lazy Loaded Spoiler
Unveil effects
Add styling to your theme for the classes: lazyload, lazyloading, lazyloaded.

Fade in

CSS:
/* fade image in after load */
.lazyload,
.lazyloading {
opacity: 0;
}
.lazyloaded {
opacity: 1;
transition: opacity 300ms;
}
Spinner

CSS:
/* fade image in while loading and show a spinner as background image (good for progressive images) */

.lazyload {
opacity: 0;
}

.lazyloading {
opacity: 1;
transition: opacity 300ms;
background: #f7f7f7 url(loader.gif) no-repeat center;
}
Licensing:

Lazysizes is MIT Licensed, as of 2018-01-10.


Contributing features or bug fixes
Please create a Github Pull request via the "More Information" link.

Contributions

If you appreciate this addon, please consider a contribution via PayPal. Details will be provide via private conversation.

Please contact me if you wish for different licencing arrangements.

 

Attachments

  • addon-Xon-LazyImageLoader-2.5.1.zip
    73.4 KB · Views: 0
Top