tylerpearson / lazyYT

A jQuery plugin to lazy load those dang Youtube iframe videos.
Other
208 stars 86 forks source link

Make lazyYT work with Vimeo #17

Open dantaeyoung opened 9 years ago

dantaeyoung commented 9 years ago

I've edited the plugin to work with Vimeo as well - despite the name still being lazyYT, I think it'd be helpful to support the two major video platforms, not just one.

bharatpatil commented 9 years ago

This is required. I was looking for this. @provolot Thanks you. :+1:

Neogeeo commented 3 years ago

@dantaeyoung thank you very much for this great hack :)

Just one thing, all the video-titles-urls (YT/VIM) are always linking to youtube.com/?v= domain, so how could I get the correct title-url for vimeo videos too?

innerHtml.push('<a id="lazyYT-title-', id, '" class="html5-title-text" target="_blank" tabindex="3100" href="//www.youtube.com/watch?v=', id, '">');