diff --git a/README.md b/README.md index 9ac72a6..9840097 100644 --- a/README.md +++ b/README.md @@ -124,3 +124,12 @@ flexibility. | `nocookie` | Use youtube-nocookie.com as iframe embed uri | `false` | | `autoload` | Use Intersection Observer to load iframe when scrolled into view | `false` | | `params` | Set YouTube query parameters | `` | + +## Events + +The web component allows certain attributes to be give a little additional +flexibility. + +| Event Name | Description | Returns | +| -------------- | ---------------------------------------------------------------- | ------- | +| `liteYoutubeIframeLoaded` | When the iframe is loaded, allowing us of JS API | `detail: { videoId: this.videoId }` | diff --git a/demo/index.html b/demo/index.html index 26896d3..abe1cab 100644 --- a/demo/index.html +++ b/demo/index.html @@ -104,6 +104,7 @@