Add-ons Lazy Load [img] 2.7.1

CR LEAKS

CR LEAKS

Administrative
Joined
Mar 25, 2022
Messages
1,272
Reaction score
5,190
Points
113
Credits
19,596
Provides lazy loaded image support via the
Please, Log in or Register to view URLs content!


A zero query method for per user-group lazy loading of the and [/B]
  • 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'ed images
    • Ignores permissions, and lazy loads images in spoilers
  • Lazy load icons
    • Lazy load user avatars, resource icons, and threadmark icons.
      This uses browser native lazy loading.
  • Use native lazy loading
    • Requires a modern browser, otherwise falls back to js library code
  • Inject blank SVG for attachment
1711663558768.png



Unveil effects
Add styling to your theme for the classes: lazyload, lazyloading, lazyloaded. This can be done by the provided style classes

Fade in
Fade image in after load.

In; Lazy loading and Lazy loading in progress
CSS:
opacity: 0;
In Lazy loading finished add;

CSS:
opacity: 1;
transition: opacity 300ms;

Spinner
Fade image in while loading and show a spinner as background image (good for progressive images)

In; Lazy loading;
CSS:
opacity: 0;
In Lazy loading in progress;
CSS:
opacity: 1;
transition: opacity 300ms;
background: #f7f7f7 url(loader.gif) no-repeat center;

A "loader.gif" image is not provided by this add-on!

Content locked
This content has been locked. You can unlock it with 5 credits.
 
4,479Threads
10,387Messages
39,585Members
CodeinLatest member
Top