# lazy-youtube **Repository Path**: mirrors_regular/lazy-youtube ## Basic Information - **Project Name**: lazy-youtube - **Description**: https://github.com/tylerpearson/lazyYT fork - **Primary Language**: Unknown - **License**: CC-BY-SA-4.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-10-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # lazy-youtube.js [![Build Status](https://travis-ci.org/micnews/lazy-youtube.svg)](https://travis-ci.org/micnews/lazy-youtube) ## Description This is a JavaScript module to lazy load Youtube videos, Browserify/Node.js-style fork of https://github.com/tylerpearson/lazyYT, that does not depend on jQuery. On the initial load, the `div` will be appended by a preview `img` of the video. On click of the image, the preview `img` will be replaced by the autoplaying `iframe` Youtube video. ## Setup ```bash npm install lazy-youtube ``` HTML: ```html
``` JavaScript: ```js var lazyYoutube = require('lazy-youtube'); // Init element lazyYoutube(element); ``` CSS: Add `lazyyt.css` into the page ## License (CC) [Creative Commons](http://creativecommons.org/licenses/by-sa/4.0/)