Lazy loading
4 posters
Page 1 of 1
Lazy loading
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
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
Re: Lazy loading
It's not really about the servimg, because we have avatars hosted from other websites for te most part.
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.
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.
Re: Lazy loading
Exactly is this happening to all images or only the ones from limgur?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Lazy loading
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
if I am not mistaken this is happening to images that are not visible without scrolling
TonnyKamper and tikky like this post
Re: Lazy loading
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.
Re: Lazy loading
@Kiekie,
Try adding this script in your javascript codes to see if this solves your issue:
Placement: In all the pages
Code
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.
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.
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
Re: Lazy loading
Problem solved & topic archived.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum