Closed ghost closed 10 years ago
SVG images embedded using <img>
tag are supported: http://jsfiddle.net/9bd6n/
Could you create test case somewhere (e.g. on jsfiddle.net)?
Thanks for the speedy reply, I'll test for other possible causes and get back
Apologies for this... svg is now working, was a mistake whereby "src" was used instead of "data-src". Do you support fall-back to PNG for when the browser doesn't render SVG, is there any way to specify this / any compatible add-ons similar to srcset for example? If not, might be able to combine with a third party script using the $.lazyLoadXT.onload event.
There is no fallback to png, but it can be done either by processing loading error in lazyerror
event, or by creating srcAttr
function to handle browsers without SVG support.
Thanks for the tip, I'll give this a go
There doesn't appear to be any support for SVGs, is this planned at all? Currently, if you use an SVG, it isn't loaded in by the browser at all (but it does without lazy-loading enabled). It'd be great if you could incorporate some sort of SVG support with fall-back to PNG, like this javascript plugin: https://github.com/benhowdle89/svgeezy