# Optimize Youtube Video

Optimize youtube videos considering webp thumbnails and adapting to any lazyloading plugin.
Not using JQuery!
If javascript is disabled, it will go back to iframe.
Flexible to any lazyload plugin, you can follow their markup and have a full control for the thumbnails.

## Improving your page speed score
* Lazy load third-party resources with facades
* Next-gen format for thumbnails
* Lowest contentful paint | disable lazyload to those thumbnails in Above-The-Fold content

## Features
* Automatically convert your iFrame with youtube source link to thumbnails
* Adapting to any lazyload Plugins
* No lazyload js included to reduce http request
* Full control output for youtube videos and their thumbnails
* Auto-resize thumbnail in mobile from iframe attribute
* Customizable Youtube Play Icon (youtube play icon webp image icon by default)
* Global settings for all youtube videos
* Using inline and minimal css and javascript to prevent render-blocking

## Installation
* Go to Plugins > Add New > Optimize Youtube Video
* Go to Settings > Optimize Youtube Video

## Tips
* Do not lazyload above the fold thumbnails
* For WP Rocket - disable "Replace Youtube videos by thumbnail" in Lazyload Tab

## Maintainer
* [Jundell Agbo](https://profiles.wordpress.org/jundellagbo/)
