TopGit tracks paulirish/lite-youtube-embed on GitHub. The project has 6.4k stars. A faster youtube embed.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Use the lite-youtube-embed npm package or download from this repo and use src/.
To use the custom element you will need to:
Include the stylesheet within your application
Include the script as well
Use the lite-youtube tag via HTML or JS.
Be happy that you're providing a better user experience to your visitors
<!-- Include the CSS & JS.. (This could be direct from the package or bundled) -->
<link rel="stylesheet" href="node_modules/lite-youtube-embed/src/lite-yt-embed.css" />
<script src="node_modules/lite-youtube-embed/src/lite-yt-embed.js"></script>
<!-- Use the element. You may use it before the lite-yt-embed JS is executed. -->
<lite-youtube videoid="goiWrNiaT0I" playlabel="Play: Crayon Physics Deluxe - Trailer HD"></lite-youtube>
Privacy note: the default embed uses youtube-nocookie.com. On browsers that need
the YouTube IFrame Player API, the API script also loads from youtube.com.
Use poster-image-availability.html to determine what poster images are available for you.
Access the YouTube Iframe Player API
Use the js-api param: <lite-youtube videoid="goiWrNiaT0I" js-api>.. Then you can use IFrame Player API:
const player = await document.querySelector('lite-youtube').getYTPlayer();
player.seekTo(15); // jump to 15 seconds
Demo: Iframe Player API usage
One-tap playback in Safari on iPhone and iPad
Safari on iOS/iPadOS blocks audible playback when the YouTube iframe is created after a tap. To make one-tap playback work with sound, lite-youtube automatically prepares the hidden iframe and IFrame Player API ahead of time on iPhone and iPad Safari (trading off some of its usual loading and privacy benefits on those devices).
See autoplay.md for the browser test matrix, history, and comparison test page.
Add a video title
If you want to display a title prior to loading the full embed, set the title attribute:
YouTube supports a variety of player parameters to control the iframe's behavior and appearance.
These may be applied by using the params attribute.
<!-- Example to show a video player without controls, starting at 10s in, ending at 20s,
with modest branding *and* enabling the JS API -->
<lite-youtube videoid="goiWrNiaT0I" params="controls=0&start=10&end=30&modestbranding=2&rel=0&enablejsapi=1"></lite-youtube>
Note that lite-youtube uses autoplay=1 by default.
Demo: Custom player parameters
Other fast YouTube embeds
<lite-youtube> using shadow DOM: justinribeiro/lite-youtube :+1:
React port 1: ibrahimcesar/react-lite-youtube-embed
React port 2: kylemocode/react-lite-yt-embed
React wrapper: @next/third-parties
Vue port: andrewvasilchuk/vue-lazy-youtube-video
Other third-party facades
Lite Vimeo Embed: luwes/lite-vimeo-embed
<lite-vimeo>: slightlyoff/lite-vimeo
React Live Chat Loader (Intercom, Help Scout, Drift, Facebook Messenger): calibreapp/react-live-chat-loader
How many stars does paulirish/lite-youtube-embed have?
paulirish/lite-youtube-embed has 6.4k GitHub stars — refresh the page for the live number, or check github.com/paulirish/lite-youtube-embed. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is paulirish/lite-youtube-embed open source?
TopGit's metadata for paulirish/lite-youtube-embed does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What is paulirish/lite-youtube-embed?
paulirish/lite-youtube-embed (paulirish/lite-youtube-embed) is a HTML project on GitHub. From the project's own README: A faster youtube embed.
Where can I see paulirish/lite-youtube-embed in action?
The project maintains a homepage at https://paulirish.github.io/lite-youtube-embed/. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about paulirish/lite-youtube-embed?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/paulirish/lite-youtube-embed is the definitive source.
Read full README in the tab above.
Is lite-youtube-embed worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of lite-youtube-embed.