lazyYT
lazyYT copied to clipboard
lazyYT-video-loaded class prevents movie container from multiple usage
I see no reason for adding lazYT-video-loaded class. Consider if someone wants to change movie's URL and reload youtube's iframe container. In these case the iframe cannot be loaded again because of following statement around line 100:
if (!$el.hasClass('lazyYT-video-loaded') && jQuerythumb.hasClass('lazyYT-image-loaded')) {
Removing this condition enables reloading youtube iframes in the same container:
!$el.hasClass('lazyYT-video-loaded')
@folmert I have moved the added class to settings. So if you edit it - it won't prevent you from re-loading and re-using movie containers.
Check the commit: https://github.com/Daugilas/lazyYT/commit/ec8fda3f1ffb507a73032d0f1464bf37533c7f43