GridVids
Sign in with YouTube

Add YouTube Videos to WordPress Without Slowing Your Site

Mark watched
Don't Miss
Hide
Open in popup Open on YouTube

WPCrafter.com WordPress For Non-Techies 5 years ago
Chapters

A YouTube video in your blog post can wreck your page speed. Here's how to add YouTube videos to WordPress without the slowdown. I install Presto Player and use its YouTube Optimized preset, so the YouTube player only loads when someone presses play.

Here's the problem. In my test, a page with a normal YouTube embed took 3.4 seconds to load with 673 KB of JavaScript. The same page with this fix had 162 KB of JavaScript and loaded much faster.

The fix is the core version of Presto Player. In its settings I set the play button colour to match my brand, add a YouTube channel ID to show a subscribe bar under the video, and point out privacy mode, which stops YouTube tracking your viewers if you're concerned about GDPR.

Adding a video works almost like the normal YouTube block: add the Presto YouTube block, paste the URL and choose the YouTube Optimized preset. None of the YouTube player loads until someone clicks play, and that's where the speed comes from.

Presto Player also has its own modules for Elementor and Beaver Builder, including dynamic content. Anywhere else, the Media Hub gives you a shortcode, plus a PHP function for developers.

This is for WordPress site owners and bloggers who put YouTube videos on their pages and want them to load fast.

MY PRODUCTS SureCart (ecommerce for WordPress) https://www.wpcrafter.com/surecart SureMembers (memberships) https://www.wpcrafter.com/suremembers SureDash (communities and courses) https://suredash.com/ OttoKit (automation) https://www.wpcrafter.com/suretriggers Presto Player (video) https://www.wpcrafter.com/prestoplayer ZipWP (AI website builder) https://www.wpcrafter.com/zip

RECOMMENDED HOSTING ZipWP Managed Hosting https://zipwp.com/managed-hosting/ Hostinger https://www.wpcrafter.com/hostinger Cloudways https://www.wpcrafter.com/cloudways

CHAPTERS

How many YouTube videos are embedded on your site right now? Subscribe for more WordPress tutorials. All of the opinions expressed in this video are my own, I was not paid to make this video. Whenever there is a link in any of my videos, if there is a referral program available, please assume that you are clicking on a referral link.