Description
- Simple plugin to optimize youtube videos and improve the site page speed score.
- css and js are minimal and inlined for better performance.
Shortcode
advanced:
[opt-youtube-video id=dQw4w9WgXcQ imgformat=jpg width=480 height=360 title=”Youtube title here” showtitle=1 lazyload=1 lazyattr=data-srcset ytattrs=?autoplay=1&controls=0 ytthumbail=hqdefault thumbnailclass=lazyload]
or
simple:
[opt-youtube-video id=dQw4w9WgXcQ]
youtube thumbnail lists: default, mqdefault, hqdefault, sddefault, maxresdefault
Installation
- Go to Plugins > Add New > Optimize Youtube Video
- Go to Settings > Optimize Youtube Video