LazyLoad Embed Youtube Player in Pure JS

LazyLoad Embed Youtube Player – simple and lightweight plugin – pure JS Youtube lazy loader that delays the loading of Youtube video player to improve the performance of your web page. The Youtube lazy loader fetches and displays the Youtube thumbnail on the webpage and loads the video when needed (on click).

Features

If you need to add more thumbnails here you can randomize which one is displayed. Name your files d4AmYBhGBfM.jpg adding custom suffix. For 3 thumbnails make d4AmYBhGBfM--1.jpg, d4AmYBhGBfM--2.jpg and d4AmYBhGBfM--3.jpg. To show thumbnail 2 use data-embed-yt-lazy-random="--2" and so on. You can randomize numbers using <?php echo rand(1,3);?>. Leave empty if you have only 1 thumbnail.