High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.
MIT License
17.56k
stars
1.73k
forks
source link
Access source attributes in lazyriasmodifyoptions #937
Describe your problem/question
Currently, I am calculating available sizes based on image width/height and aspect ratio. This is an issue when using a picture element with source within.
Describe your problem/question Currently, I am calculating available sizes based on image width/height and aspect ratio. This is an issue when using a
picture
element withsource
within.Make it reproduce-able https://jsfiddle.net/5k6evx18/1/ Check console. It only logs 0.5 for the
img
element.