vvo/lazyload

embed tag

marin-df opened this issue · 1 comments

Thank you for this great script.

I look forward to the possibility of lazy loading on div background . I could carry on my side by adding an image below <img> that has the role of background . But the code is not very beautiful.

I just used your script on embed tags for flash files . This works but you have to know two things : onload does not work on embed tag and Chrome does not support the change src ( you have to refresh the parent content)

I achieved this by adding an ID to the embed and via the function:

function lzldEmbed(e) { e = document.getElementById(e); var s = setInterval(function(){ if (e.src!='') { var c = e.parentElement; c.innerHTML = c.innerHTML; clearInterval(s); } },100); lzld(e); }

vvo commented

It seems you have mutliple requests/issues here:

  • loading backgroud divs images: #75
  • embed tag lazyloading

About the second question, maybe you can submit a fix?