Research NoLazy parameter
- Martin Stepanek
-
Onderwerp Auteur
- Offline
Minder
Lees meer
- Berichten: 1
- Ontvangen bedankjes 0
1 jaar 4 maanden geleden #2773
door Martin Stepanek
NoLazy parameter werd gestart door 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
Graag Inloggen deelnemen aan het gesprek.
- Ruud van Lent
-
- Offline
Minder
Lees meer
- Berichten: 1707
- Ontvangen bedankjes 111
1 jaar 4 maanden geleden #2774
door Ruud van Lent
Beantwoord door Ruud van Lent in 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.
Graag Inloggen deelnemen aan het gesprek.