Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

embed tag #75

Open
marin-df opened this issue Apr 13, 2016 · 1 comment
Open

embed tag #75

marin-df opened this issue Apr 13, 2016 · 1 comment

Comments

@marin-df
Copy link

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
Copy link
Owner

vvo commented Apr 13, 2016

It seems you have mutliple requests/issues here:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants