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 245 forks source link

Can you edit the youtube's iframe code? #12

Closed nachitox closed 9 years ago

nachitox commented 10 years ago

The Youtube's terms says:

So, my questions is if is ok to change the src to data-src attribute of the Youtube's iframe code?

Thank you, Ignacio

dryabov commented 10 years ago

I guess it is ok as we are not affecting "Embeddable Player", we just load it with some delay. Formally <iframe> without src attribute is not Youtube's code, and it is transformed into actual code later (when visitor scrolls to it). And note that after it is transformed into actual code, Lazy Load XT doesn't change it at all.

PS. It's just my opinion.