Lazy Load [img]

Lazy Load [img] 1.3.1

No permission to download
Thank you very much for this update.

Unfortunatley not working on the gallery index page and on the category pages. Now there is no image shown instead of the thumbnail.
On detail pages everything is fine. Gallery images included in posts are ok, too.

Tested with default and custom layout. Already re-downloadeded and re-installed, but still the same. :(

upload_2016-12-6_21-0-33.webp
 
Can you share you site here or by pm?
Edit: I'm on mobile and didn't saw your signature. Is that the one?
 
Last edited:
Hi @Nuno
Site is linked in my signature. But be warned of the content ;)
The maybe only category without adult content is here: https://www.pe-community.eu/media/categories/trainingsgeraete.6/

Give me 2 minutes to re-activate the template modifications for the gallery parts.

btw: on the album thumb pages the images are shown but disappear as soon as you hoover over the grid. If there are more than 1 image in the album it takes 1 or 2 seconds to show the other images, but the loop includes a white/blank image. If there's only 1 image in the album the grid stays blank.
 
Can you share the content of these two templates:

xengallery_media_thumb_item
xengallery_bb_code_tag_gallery_media

What version of xf and xfmg are you using?
 
What version of xf and xfmg are you using?
The latest ones. XF 1.5.11 and XFMG 1.1.10.

Can you share the content of these two templates:

xengallery_media_thumb_item
xengallery_bb_code_tag_gallery_media
Here you go (only the content of the Flat Awesome+ templates; the standard templates are as delivered by XF):

PHP:
<li id="media" class="tabContent">
    <xen:if is="{$media.bbCodeOption} == 'simple'">
        <h3 class="textHeading">{$media.media_title}</h3>
    </xen:if>
    <div class="tabSection">
        <xen:if is="{$media.media_type} == 'image_upload'">
            <a href="{xen:link xengallery, $media}">
                <img src="{xen:link xengallery/full, $media}" class="galleryImage" />
            </a>
        <xen:elseif is="{$media.media_type} == 'video_upload'" />
            <xen:include template="video_js_setup" />

            <div class="mediaContainer">
                <div class="videoContainer">
                    <video id="media-video-{$media.media_id}" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" width="500" height="300" data-setup="{}">
                        <source src="{$media.videoUrl}" type="video/mp4">
                    </video>
                </div>
            </div>
        <xen:else />
            {xen:raw $media.videoHtml}
        </xen:if>
    </div>
</li>

xengallery_media_thumb_item attached due to the 10.000 characters limit.
 

Attachments

update to latest version, some image not loaded and must to reload again to show avatar.
use xF 1.5.11
Capturex.webp
 
Thank you very much for this update.

Unfortunatley not working on the gallery index page and on the category pages. Now there is no image shown instead of the thumbnail.
On detail pages everything is fine. Gallery images included in posts are ok, too.

Tested with default and custom layout. Already re-downloadeded and re-installed, but still the same. :(

View attachment 144807
Hi can you try this version? https://github.com/Xon/XenForo-LazyImageLoader/archive/master.zip

Once it is confirmed as fixed, I'll release it.
 
Hmm... image still not show, iam use file send from @Nuno and from @Xon above but image still not show, must to reload again to show it.
Capture1.webp Capture2.webp
 
Seems like it has a bug with smilies on the iPhone where they don't load. Again this is only happening on my iPhone and not on desktop. Can anyone else confirm this?
 
I love this concept.

I know it will help reduce load speed.

Q... I have some threads with many video posts, like utubes. Page load speed is horrendous, dependent on google serving them.

Can this be adapted to work with media bbcode? My biggest need.
 
This add-on does not support lazy loading for youtube media. While embedded media shouldn't auto-play making the placeholder image they use lazyload isn't something easily done.
 
Top Bottom