Research NoLazy parameter
- Martin Stepanek
-
Topic Author
- Offline
Less
More
- Posts: 1
- Thank you received: 0
1 year 2 months ago #2773
by Martin Stepanek
NoLazy parameter was created by Martin Stepanek
Hi
Is there way to define images I don't want to lazy load? Easiest would be by class or something similar. As I have big banner image and it is lazy loaded so giving higher than needed LCP.
Thank you
Is there way to define images I don't want to lazy load? Easiest would be by class or something similar. As I have big banner image and it is lazy loaded so giving higher than needed LCP.
Thank you
Please Log in to join the conversation.
- Ruud van Lent
-
- Offline
Less
More
- Posts: 1700
- Thank you received: 110
1 year 2 months ago #2774
by Ruud van Lent
Replied by Ruud van Lent on topic NoLazy parameter
Good morning Martin,
thanks for reaching out.
in the last version i have build something in for this, this is how it works:
When you turn on debug in the plugin, it will add additional information to the images where you can see what the image number is. So in the browser you can inspect you image and it will have the attribute "debug-image-number=xyz" added to it. That way you can see what the number of eager loading images should be.
As for excluding the lazy loading via a class name (or image attribute), that is something I will put on the to investigate list: sounds like a valid option!
Can you give this a try? Please let me know if this works for you.
Regards,
Ruud.
thanks for reaching out.
in the last version i have build something in for this, this is how it works:
- in config select: Add lazy loading attribute = yes
- then the next option: Add eager loading attribute = x
When you turn on debug in the plugin, it will add additional information to the images where you can see what the image number is. So in the browser you can inspect you image and it will have the attribute "debug-image-number=xyz" added to it. That way you can see what the number of eager loading images should be.
As for excluding the lazy loading via a class name (or image attribute), that is something I will put on the to investigate list: sounds like a valid option!
Can you give this a try? Please let me know if this works for you.
Regards,
Ruud.
Please Log in to join the conversation.