Home › Forums › WoodMart support forum › Theme loading weird file called "lazy.png"
Theme loading weird file called "lazy.png"
- This topic has 11 replies, 3 voices, and was last updated 3 years, 8 months ago by Jeriss Cloud Center.
-
AuthorPosts
-
January 18, 2020 at 4:16 pm #168703
Jeriss Cloud CenterParticipantDear,
I notice that my waterfall chart in GTmetrix is loading a theme file called “lazy.png”
What is this? When I open it, the file seems empty.
Can you tell me what functionality of the theme is using this feature? And how to get rid of it?
Thanks
Attachments:
You must be logged in to view attached files.January 19, 2020 at 7:27 am #168742
Elise NoromitMemberHello,
This is an image which does not relate to our theme. Find it in Media library and delete if you do not need it.
Best Regards
January 19, 2020 at 2:20 pm #168797
Jeriss Cloud CenterParticipantHi,
Sorry but yes this file is related to the theme. If you check my attachments well, you will clearly see the path of the file : wp-content/themes/woodmart/images/lazy.png
So no you cannot say that this image is not related to the theme…
Thanks
January 19, 2020 at 6:27 pm #168809
Elise NoromitMemberHello,
Perhaps I am mistaken. It means that this image could be uploaded as a demo, please delete it from the folder. All image destination is just to demonstrate.
Best Regards
March 24, 2021 at 8:54 pm #276115
Jeriss Cloud CenterParticipantDear,
I tried deleting this image but then in GTmetrix waterfall, this image was still being requested as an HTTP call flagged as “failed”
so this file must be a leftover from a demo imported long time in the past, when I started using Woodmart but I can’t find where it is located. I searched everywhere and I can’t locate it.
I see the file loading in F12 Console > Network > lazy.png but can you help me find out where exactly on the page it’s located? I want to remove the call itself to the picture.
Also, I don’t know if it’s any relevant but I noticed in PSI on Desktop version that PSI assigns this lazy.png to all my product categories images of the mega menu. Can you help understand this?
Thanks
Attachments:
You must be logged in to view attached files.March 25, 2021 at 10:05 am #276222
Artem TemosKeymasterHello,
This image is a default placeholder when you use our Lazy Loading option. You can replace it in Theme Settings -> Performance -> Lazy loading.
Kind Regards
March 25, 2021 at 12:08 pm #276241
Jeriss Cloud CenterParticipantHi Artem,
Alright so I understand that this lazy.png is the Woodmart’s default placeholder for the lazyloading. However, there are two problems here :
1) By definition, a placeholder should be able to “hold the place” (width and height) of the original image, so it should adapt accordingly. This is not the case here, and PSI considers this a problem (even though it’s not impacting “directly” the score) but it’s still an issue for PSI. How can your theme ensure that placeholers loaded when lazyloading adapts itself to the width and height => critical for ensuring low CLS
2) In the other post mentioned below, you kindly provided me a way to lazyload images included in mega menu when they are within the viewport. In GTmetrix and in real naviguation, I’m correctly seeing that images are lazyloaded. So if those images are not loadedon pageload and not visible on screen (because hidden in a mega menu), why do we need to assign a placeholder which cause the PSI width/height issue?
https://xtemos.com/forums/topic/lazyload-images-from-mega-menu-2/
Thanks
Attachments:
You must be logged in to view attached files.March 25, 2021 at 12:18 pm #276249
Artem TemosKeymasterHello,
1. Width and height attributes are not changed when you use lazy loading. You can check any image and see that it has the same size set even when our placeholder is shown https://prnt.sc/10v3fjy
2. Because you can’t display HTML
<img>
tag withoutsrc
attribute. That is why our placeholder is used there. If you don’t want to display<img>
at all, you can use our AJAX dropdowns functionality.Kind Regards
March 25, 2021 at 9:03 pm #276358
Jeriss Cloud CenterParticipantAlright I’ve decided to use the AJAX alternative. However, I still have a question about that. When ajax loads, the dropdown ajax placeholder is fully white. I tried changing the color on the following css class but it seems it’s not correct. Can you help me know which css class to use for changing the background color of the ajax placeholder? Thanks
Attachments:
You must be logged in to view attached files.March 25, 2021 at 11:26 pm #276385
Jeriss Cloud CenterParticipantNo worries, found it!
.dropdown-html-placeholder { background-color: #ebebeb; }
March 26, 2021 at 7:30 am #276427
Artem TemosKeymasterWe are glad that you sorted it out. Let me know if you need anything else.
April 9, 2021 at 5:18 pm #280944
Jeriss Cloud CenterParticipantYou can close this ticket, thanks
-
AuthorPosts
The topic ‘Theme loading weird file called "lazy.png"’ is closed to new replies.
- You must be logged in to create new topics. Login / Register