You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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); }
The text was updated successfully, but these errors were encountered:
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); }
The text was updated successfully, but these errors were encountered: