Releases: justinribeiro/lite-youtube
Releases · justinribeiro/lite-youtube
v1.5.0
What's Changed
- feat(csp): add support for csp style nonce by @justinribeiro in #68
- fix(preload): prevent multiple rules in multi-instance scenario by @justinribeiro in #69
- Document fallback with example styles by @mrwweb in #73
- Improved Accesibility by @ru-ka in #74
- fix: Make the package a valid ES module by @ridem in #76
- Use official youtube logo by @neilitalia in #82
New Contributors
- @mrwweb made their first contribution in #73
- @ru-ka made their first contribution in #74
- @ridem made their first contribution in #76
- @neilitalia made their first contribution in #82
Full Changelog: v1.4.0...v1.5.0
v1.4.0
What's Changed
- feat(core): add YouTube Shorts-style mobile embed interaction by @justinribeiro in #67
Full Changelog: v1.3.2...v1.4.0
v1.3.2
What's Changed
- chore(deps): bump nanoid from 3.1.30 to 3.2.0 by @dependabot in #50
- Add lazy loading to the placeholder image by @slightlyoff in #65
- fix play button cursor type by @neon-dev in #63
New Contributors
- @slightlyoff made their first contribution in #65
- @neon-dev made their first contribution in #63
Full Changelog: v1.3.1...v1.3.2
v1.3.1
What's Changed
- fix(css): placeholder position with different text-align by @anatolykopyl in #44
New Contributors
- @anatolykopyl made their first contribution in #44
Full Changelog: v1.3.0...v1.3.1
v1.3.0
- Adds
loading=lazy
to image placeholder for more perf withposterloading
attr if you'd like to use eager
v1.2.0
Adds:
playlistid
param for use with a youtube playlist id. Note, you must give a videoid as well, otherwise no thumbnail will load (playlists don't serve a thumbnail).
Example:
<lite-youtube videoid="VLrYOji75Vc" playlistid="G5r6j4GptH5JTveoLTVqpp7w2oc27Q9"></lite-youtube>
On interaction, loads the playlist interface.
playlist-support-lite-youtube.mp4
v1.1.0
Adds:
nocookie
param for use youtube-nocookie.com as iframe embed uriliteYoutubeIframeLoaded
custom event for knowing when iframe is loaded
v1.0.0
Install
This web component is built with ES modules in mind and is
available on NPM:
npm i @justinribeiro/lite-youtube
# or
yarn add @justinribeiro/lite-youtube
Install with CDN
If you want the paste-and-go version, you can simply load it via CDN:
<script type="module" src="https://cdn.jsdelivr.net/npm/@justinribeiro/lite-youtube@1.0.0/lite-youtube.js"></script>