You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the srcAttr: 'src' due to compatibility with a third party plugin which requires the default src. However, I have several divs with a background-image that I would like to Lazy Load. My question is; how do configure the plugin to also target a div with fx .someClass to lazy load the background-image with the default attr data-bg? I've tried several different variations which always seem to cancel the other one out. So the back-ground image will work but then not the <img> etc. Furthermore I have an HTML5 video running that I would like to lazy load but with the default src instead of data-src.
Basically, I would like to know how to define each element that I would like to lazyload, based on fx class, and also the src attribute whether it's the lazyload default or the html default.
Sorry for the noob question, hope someone can help.
The text was updated successfully, but these errors were encountered:
I am using LazyLoad XT to load default
<img>
s and it's working just fine usingI am using the
srcAttr: 'src'
due to compatibility with a third party plugin which requires the defaultsrc
. However, I have severaldiv
s with abackground-image
that I would like to Lazy Load. My question is; how do configure the plugin to also target a div with fx.someClass
to lazy load the background-image with the default attrdata-bg
? I've tried several different variations which always seem to cancel the other one out. So the back-ground image will work but then not the<img>
etc. Furthermore I have an HTML5 video running that I would like to lazy load but with the defaultsrc
instead ofdata-src
.Basically, I would like to know how to define each element that I would like to lazyload, based on fx class, and also the src attribute whether it's the lazyload default or the html default.
Sorry for the noob question, hope someone can help.
The text was updated successfully, but these errors were encountered: