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.

Lazy loading

4 posters

Go down

Solved Lazy loading

Post by Kiekie April 30th 2021, 7:14 pm

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 May 1st 2021, 9:56 pm; edited 1 time in total
Kiekie
Kiekie
Forumember

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

https://talesofsinnoh.actieforum.com

Back to top Go down

Solved Re: Lazy loading

Post by skouliki April 30th 2021, 7:46 pm

hello

you mean servimg ?
skouliki
skouliki
Manager
Manager

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

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Lazy loading

Post by Kiekie April 30th 2021, 7:52 pm

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.
Kiekie
Kiekie
Forumember

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

https://talesofsinnoh.actieforum.com

Back to top Go down

Solved Re: Lazy loading

Post by SLGray April 30th 2021, 8:37 pm

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51596
Reputation : 3527
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Lazy loading

Post by skouliki April 30th 2021, 9:36 pm

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



skouliki
skouliki
Manager
Manager

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

http://iconskouliki.forumgreek.com

TonnyKamper and tikky like this post

Back to top Go down

Solved Re: Lazy loading

Post by Kiekie May 1st 2021, 6:55 pm

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.
Kiekie
Kiekie
Forumember

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

https://talesofsinnoh.actieforum.com

Back to top Go down

Solved Re: Lazy loading

Post by TheCrow May 1st 2021, 6:59 pm

@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!
TheCrow
TheCrow
Manager
Manager

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

https://www.inforumgr.com

SLGray likes this post

Back to top Go down

Solved Re: Lazy loading

Post by Kiekie May 1st 2021, 9:56 pm

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

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

https://talesofsinnoh.actieforum.com

TheCrow likes this post

Back to top Go down

Solved Re: Lazy loading

Post by SLGray May 1st 2021, 10:24 pm

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51596
Reputation : 3527
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum