Lazy loading

Go down

Solved Lazy loading

Post by Kiekie April 30th 2021, 6: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, 8:56 pm; edited 1 time in total
Kiekie
Kiekie
Forumember

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

View user profile https://talesofsinnoh.actieforum.com

Back to top Go down

Solved Re: Lazy loading

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

hello

you mean servimg ?
skouliki
skouliki
Manager
Manager

Female Posts : 10888
Reputation : 1370
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Lazy loading

Post by Kiekie April 30th 2021, 6: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 : 46
Reputation : 2
Language : English, Dutch
Location : Netherlands

View user profile https://talesofsinnoh.actieforum.com

Back to top Go down

Solved Re: Lazy loading

Post by SLGray April 30th 2021, 7: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 : 49076
Reputation : 3419
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Lazy loading

Post by skouliki April 30th 2021, 8: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 : 10888
Reputation : 1370
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

TonnyKamper and pedxz like this post

Back to top Go down

Solved Re: Lazy loading

Post by Kiekie May 1st 2021, 5: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 : 46
Reputation : 2
Language : English, Dutch
Location : Netherlands

View user profile https://talesofsinnoh.actieforum.com

Back to top Go down

Solved Re: Lazy loading

Post by TheCrow May 1st 2021, 5: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.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6667
Reputation : 778
Language : Greek, English

View user profile https://forumote.forumotion.com

SLGray likes this post

Back to top Go down

Solved Re: Lazy loading

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

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

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

View user profile https://talesofsinnoh.actieforum.com

TheCrow likes this post

Back to top Go down

Solved Re: Lazy loading

Post by SLGray May 1st 2021, 9: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 : 49076
Reputation : 3419
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top


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