Lazy Load [img]

Lazy Load [img] 1.3.1

No permission to download
Thanks for this addon, which is working well on AVForums. As usual there are some people who don't like it. How difficult would it be to have an option in the user preferences to switch it off, please?
 
  • Like
Reactions: Xon
Thanks for this addon, which is working well on AVForums. As usual there are some people who don't like it. How difficult would it be to have an option in the user preferences to switch it off, please?
Atm, what I do is a custom field which triggers a user promotion to add them to a user group with the option enabled. This will take about 10-25 minutes to setup in the XenForo AdminCP

An actual user option wouldn't be much work, but it comes down to scheduling. But it will be about a week or two before I can work on it.
 
Atm, what I do is a custom field which triggers a user promotion to add them to a user group with the option enabled. This will take about 10-25 minutes to setup in the XenForo AdminCP

An actual user option wouldn't be much work, but it comes down to scheduling. But it will be about a week or two before I can work on it.
We have too many usergroups already, so I'm reluctant to add another just for this.
No rush for it from my point of view. It's a 'nice to have' feature and not at all important if it significantly affects performance.
Thanks
 
I don't think this is a good suggestion.
a faster transition is almost unnoticeable.
.lazyloaded {
transition: opacity xxxms;
}
 
This add-on seemed to be working with Chat by @Siropu add-on. I was wondering, would it be possible to prevent this add-on from lazy-loading images on that chat?

EDIT: Never mind, I seemed to have "Enable Outside threads/conversations" option enabled.
 
  • Like
Reactions: Xon
Thank you for your add-on firstly. I have some questions.

1. Any way to add font awesome animated spin icon as Loading icon of images?
2. Is possible to add that lazy loading to user avatars too ?

Thanks @Xon
 
Last edited:
Thank you for your add-on firstly. I have some questions.

1. Any way to add font awesome animated spin icon as Loading icon of images?
2. Is possible to add that lazy loading to user avatars too ?

Thanks @Xon
You should be apply it as CSS to add the font awesome icon, and then manually setup the CSS spinning. But there is no direct support for font awesome CSS classes.

It is currently not supported for lazy loading avatars.
 
On my case, I never really see the spinning icon anywhere. But I can tell that images are being lazy-loaded. Something wrong or that's just how it's designed recently?
 
On my case, I never really see the spinning icon anywhere. But I can tell that images are being lazy-loaded. Something wrong or that's just how it's designed recently?
By default, this add-on doesn't activate a CSS spinner. You need to implement the CSS yourself.
 
@Xon Ahha! Well, I have no plan to enable any kind of spinner though. It's just that I believe I've seen a spinner GIF file included in the package somewhere before, but it was never visible on the site.
 
@Xon Ahha! Well, I have no plan to enable any kind of spinner though. It's just that I believe I've seen a spinner GIF file included in the package somewhere before, but it was never visible on the site.
Correct, it includes one it just doesn't use it :)
 
@Xon It seems like I do need a spinner. Huge size images take a while for me to load, and sometimes it confuse me whether there are images or not when the post is within view. Which CSS class do I need to target to apply the spinner thingy?
 
@Xon It seems like I do need a spinner. Huge size images take a while for me to load, and sometimes it confuse me whether there are images or not when the post is within view. Which CSS class do I need to target to apply the spinner thingy?
Under "Unveil effects" on the overview page is some example CSS.
 
I'm seeing the class "lazyload" can be extended even to custom icons like FA:
slide.gif
Adding directly that class like:
Rich (BB code):
<i class="fa fa-circle lazyload"></i>
Could be possible add a little script somewhere to add lazyload in all the icons?
 
Last edited:
I'm using this script to inject the class in PAGE_CONTAINER and works perfectly:
Code:
<script type='text/javascript'>
    $(document).ready(function(){
      $('.fa').addClass('lazyload');
});
</script>
Screen Shot 2016-04-22 at 1.31.25 AM.webp
However it doesn't work on the icons added with CSS using :after :before like:
Rich (BB code):
.node.node_xx .forumNodeInfo .nodeIcon:after {
    font-family: "FontAwesome";
    content: "\e915";
}
any idea?
 
Top Bottom