
Youtube Embed Performance – plugin for WordPress

Youtube Embed Performance will improve the performance of your initial page load, especially if there are two or more videos embedded on the same page. I think, it’s no secret that youtube iframe embeds slow down your page load.
Let’s see the popular issue: the default methods for inserting video into a site (using iframe or embed) undoubtedly create many additional requests when the page loads. By embedding videos we request more than just a video file, including JavaScript files, a stylesheet, images, and advertisements. If you consider mobile devices, this amount of JS-code can seriously slow down the site.
Youtube Embed Performance – it very simple plugin for WordPress and it allow solve this issues. It replaces embedded Youtube videos on image and loading videos only when the user clicks on the play button.
Thus It improves page load times and increases your Google PageSpeed Score. On demo site Google Page Speed Result is 53/100 (plugin disabled/plugin enabled).
Demonstration:
Important: I use most fast free WordPress Template and it have 100% Google PageSpeed Score. If your theme have less result without video, you will not have 100%. Live Demo: http://extra-speed-blog.webamator.net/yep-for-wordpress-demo/. As you can see on screenshots bellow, demo post with 4 embeds video can improves perfomance almost on 50%:


How to use Youtube Embed Performance
It definitely very easy:
1. Upload the plugin files to the /wp-content/plugins/ directory.
2. Activate the plugin through the ‘Plugins’ screen in WordPress.
3. Use the Settings -> YEP for WordPress menu for change default options.
It`s all, nothing else. After, just insert the URL of Youtube video in editor field. The Youtube Embed Performance has been tested with classic (TinyMCE) editor and with block (Gutenberg) editor and from WordPress 4.8.3 to WordPress 5.3.2. In additional, you can use shortcodes:
Simple shortcode: [yep_youtube]5Fv19KVVya8[/yep_youtube]
Size attributes: [yep_youtube width=”800″ height=”460″]5Fv19KVVya8[/yep_youtube]
Controls disable: [yep_youtube controls=”0″]5Fv19KVVya8[/yep_youtube]
Privacy Enhanced: [yep_youtube nocookie=”0″]5Fv19KVVya8[/yep_youtube]
Start attribute: [yep_youtube start=”92″]5Fv19KVVya8[/yep_youtube]
Start attribute: [yep_youtube start=”01:32″]5Fv19KVVya8[/yep_youtube]
And sure, you can combine all these attributes.
Youtube Embed Performance plugin: download from my site or download from wordpress.org. Also you can download my other plugins or hired me for create specific plugin on Upwork. And you have any questions or any ideas – welcome to comments.
Related posts:


WordPress 5.0 – what’s new in this release
WordPress 5.0 named in honor of jazz musician Bebo, is available on December 6, 2018. You can download it or update in your WordPress dashboard. If you ignored all [...]
Best image optimizer wordpress
For good speed results of your website without doubt, very important optimize images. Loading image 200 kb – is not the same as loading image 100 kb. Seems [...]
Does not work after plugin is activated and correct short codes are used. Only a blank, black video box appears with no video or controls showing. I might never get a reply but find this in your directions odd and have no clue as to what you are referring.
???
3. Use the Settings -> YEP for WordPress “menu” for change default options.
???
YEP for WordPress “menu” allow change:
1 – start play video from any time, by default it 00:00
2 – enable/disable privacy enchanced mode
3 – show/hide controls buttons (play, pause and etc)
Can we lazy load the images that replace the video?
I think it good idea and it can be possible in future versions