mozilla / node-janus

https://wiki.mozilla.org/Mobile/Janus
MIT License
62 stars 14 forks source link

'Lazy load' jquery plugin doesn't work with gif2video enabled #46

Open Ackar opened 10 years ago

Ackar commented 10 years ago

The Lazy load plug-in relies on an additional data-original attribute in img to load images asynchronously. Changing the img tag to video breaks that (even when preserving the data-original attribute).

Step to reproduce

eamsen commented 10 years ago

The test link is dead, but it's clear why gif2video breaks it. Modifying the DOM will always bring risks like this, so we should look for standard-conformant alternatives to make GIFs more efficient.

eamsen commented 10 years ago

Actually, we shouldn't replace <img> if no src is given and may filter any tags with class attributes to be on the safe side.