Disable on single element? (With class on parent-dom, or…)
-
Hi,
I’ve a page, where the lazy-load is added to our logo.
One thing, is that i don’t like that, for sure, but my next problem is, that it’s getting the header to jump a bit while loading, too.
Currently i’ve fixed it by adding max-height to both the desktop and mobile edition, however, i would LIKE an option to disable the function in total.
I saw another post, where the
exclude_lazyload
was suggested, but i’m unable to add that class to the img-element (It’s not supported).
Here’s an example of how long there’s to the img-tag, from there i’m able to add anexclude
classSO; Is there an option to prevent Rocket Lazy Load from lazy-loading a specific image, by adding a class-name to a parent DOM, or somthing like that?
We’re using tagDiv, and i don’t like to hard-code our logo height (By targeting the element with
img.tdb-logo-img[loading="lazy"]
) – but it’s even worse that our logo is lazy-loaded, too.Thanks for a great plugin.
Also, we’re going to enable WP Rocket in a couple of days? I’m not sure if it’s providing the same option, or have a fix for it? But let me know, if you have any suggestion for this part ??
I guess everything could be done with a small bit of JavaScript, but I would like to know, if there’s another option, before taking steps in this direction…
Yet another option, would be to resize our logo for the menu, but i could still like to know, if it’s an option/feature in the plugin, by any change.. And it should still lazy-load it anyway, which i would like to disable, if possible…
- The topic ‘Disable on single element? (With class on parent-dom, or…)’ is closed to new replies.