You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(params) Allow for prefetching url
Adds additional parameter to allow prefetch being used for the rel attribute. Also adds a syntax correction.
* Update README.md with rel prop
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -257,6 +257,7 @@ The most minimalist implementation requires two props: `id` from the YouTube you
257
257
| playlist | boolean | Use `true` when your id be from a playlist |
258
258
| playlistCoverId | string | The ids for playlists did not bring the cover in a pattern to render so you'll need pick up a video from the playlist (or in fact, whatever id) and use to render the cover. There's a programmatic way to get the cover from YouTube API v3 but the aim of this component is do not make any another call and reduce requests and bandwidth usage as much as possible |
259
259
| poster | string. One of `default``mqdefault``hqdefault``sddefault``maxresdefault`| Defines the image size to call on first render as poster image. See: [https://stackoverflow.com/questions/2068344/how-do-i-get-a-youtube-video-thumbnail-from-the-youtube-api](https://stackoverflow.com/questions/2068344/how-do-i-get-a-youtube-video-thumbnail-from-the-youtube-api)|
260
+
| rel | string | Default `preload`. allows for prefetch or preload of the link url |
260
261
| webp | boolean | Default `false`. When set, uses the WebP format for poster images |
261
262
| wrapperClass | string | Pass the string class that wraps the iFrame |
0 commit comments