Simple script that allows you to load the youtube video only when the video is visible and automatically stop multiple videos inside the Gallery to play. Since the video is lazyloaded you have only to grab the video ID and change it in the attribute:
Simple script that allows you to load a vimeo video only when the video is visible and automatically stop multiple videos inside the Gallery to play. Since the video is lazyloaded you have only to grab the video ID and change it in the attribute: