ressio / lazy-load-xt

Lazy load XT is a jQuery plugin for images, videos and other media
http://ress.io/lazy-load-xt-jquery/
MIT License
1.36k stars 243 forks source link

Add support for other image tags #26

Open Antafes opened 9 years ago

Antafes commented 9 years ago

Please add support for other image tags like <image>. This can and should be done via an option for the name of the src attribute.

Example:

<div style="width: 100px; height: 100px;">
    <svg version="1.1"
         xmlns="http://www.w3.org/2000/svg"
         xmlns:xlink="http://www.w3.org/1999/xlink"
         style="max-height: 100%; max-width: 100%"
         preserveAspectRatio="xMaxYMax">
        <image width="100%"
               height="100%"
               data-original="http://lorempixel.com/400/200/"
               xlink:href="http://commons.wikimedia.org/wiki/File%3ATransparent.gif" />

    </svg>
</div>

As you can see, the naming of the href attribute depends on the namespace used for adding xlink.

Moorst commented 8 years ago

Any update on this? I also think this would be a useful feature