The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    Lazy loading

    Kiekie
    Kiekie
    Forumember


    Female Posts : 48
    Reputation : 2
    Language : English, Dutch
    Location : Netherlands

    Solved Lazy loading

    Post by Kiekie Fri 30 Apr - 16:14

    Hello!

    We're noticing troubles with loading images because of the lazy loading feature that's inside Forumotion, is there a way to disable that? Either via a Javascript or some sort of button in the backend? We haven't been able to shut it off.


    Kind regards,

    Kiekie


    Last edited by Kiekie on Sat 1 May - 18:56; edited 1 time in total
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Lazy loading

    Post by skouliki Fri 30 Apr - 16:46

    hello

    you mean servimg ?

    Kiekie
    Kiekie
    Forumember


    Female Posts : 48
    Reputation : 2
    Language : English, Dutch
    Location : Netherlands

    Solved Re: Lazy loading

    Post by Kiekie Fri 30 Apr - 16:52

    It's not really about the servimg, because we have avatars hosted from other websites for te most part.

    Lazy loading G5sv9pN

    This is a line of code that shows what's it about. We want to get rid of the 'loading=lazy' part so images just get loaded in normally.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    Solved Re: Lazy loading

    Post by SLGray Fri 30 Apr - 17:37

    Exactly is this happening to all images or only the ones from limgur?



    Lazy loading Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Lazy loading

    Post by skouliki Fri 30 Apr - 18:36

    If you have an image resizing code deactivate it to see if this fixes the lazy issue

    if I am not mistaken this is happening to images that are not visible without scrolling




    TonnyKamper and tikky like this post

    Kiekie
    Kiekie
    Forumember


    Female Posts : 48
    Reputation : 2
    Language : English, Dutch
    Location : Netherlands

    Solved Re: Lazy loading

    Post by Kiekie Sat 1 May - 15:55

    SLGray wrote:Exactly is this happening to all images or only the ones from limgur?

    It seems that's it's only happening to the avatars that are used on the forum. They will always have lazy loading on, all the other images are not affected by it.


    @skouliki: I tried looking for that option! But it doesn't look like we have that switched on right now. Or resizing options are set at 0.
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Lazy loading

    Post by TheCrow Sat 1 May - 15:59

    @Kiekie,

    Try adding this script in your javascript codes to see if this solves your issue:
    Placement: In all the pages
    Code
    Code:
    $(function(){
      $('img').removeAttr('loading');
    });

    This code will remove the attribute of the images but, I'm not really certain that, that is what causes the issue. It may be imgur or the image host of the avatar and not the actual code in it.

    Regards,
    TC.



    Lazy loading Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!

    SLGray likes this post

    Kiekie
    Kiekie
    Forumember


    Female Posts : 48
    Reputation : 2
    Language : English, Dutch
    Location : Netherlands

    Solved Re: Lazy loading

    Post by Kiekie Sat 1 May - 18:56

    This worked like a charm! Thank you so much! C:

    TheCrow likes this post

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    Solved Re: Lazy loading

    Post by SLGray Sat 1 May - 19:24

    Problem solved & topic archived.
    Please read our forum rules:  ESF General Rules



    Lazy loading Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is Wed 13 Nov - 17:09