lazyYT icon indicating copy to clipboard operation
lazyYT copied to clipboard

lazyYT-video-loaded class prevents movie container from multiple usage

Open folmert opened this issue 9 years ago • 1 comments

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 avatar Apr 09 '15 20:04 folmert

@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

Daugilas avatar Jul 08 '15 00:07 Daugilas