After exhaustive research, I found a website that automatically generates an “optimized” YouTube embed code that replaces the IFRAME tagged code with a “DIV” tagged code.

https://techbrij.com/tools/youtube-video-embed-code-generator.php

Changing from IFRAME to DIV keeps all those heavy JavaScript files from being loaded onto the website. And, it replaces the actual video with a thumbnail image and a “round” PLAY button. None of the videos on the webpage will be rendered during page load. Only after a visitor chooses a video and clicks the PLAY button will the YouTube player render and load the video.


Want to see how it’s done? Then, check out the next page.



Join the Discussion
Write something…
Recent messages
Triblu Premium
Hey James,

You make me love my Thrive Themes even more now. I had no idea that placing my videos between the Thrive Themes div tags as they suggested I do, would immediately help to optimize my site in there themes. Cool... THANK YOU!
Reply
bpais1 Premium
Now you can go to town in your Thrive Themes, Trish!

Happy "DIV tagging!"

Jim
Reply
AdeRobinson Premium
One of the most helpful training I've come across man, good job!
Reply
bpais1 Premium
You are most kind, Ade!

Jim
Reply
ecomtom Premium
Really good info. I normally only put 1 video per post, but I do have a few that I have embedded more. I will have to keep an eye on loading speed, and incorporate this idea if needed. Thanks for sharing. Tom
Reply
bpais1 Premium
You're quite welcome, Tom.

We need all the speed we can get!

Jim
Reply
AlenkaV Premium
Thank you for this great training! I was wondering how to help my site speed and still keep the videos I wanted on my posts. This is what I needed to read today.
Best,
Alenka
Reply
bpais1 Premium
Glad it's something you can use, Alenka!

Jim
Reply
nurselizstar Premium
Oh my goodness, you make it all sound so...happy! Actually, I am going to book mark this for the day I actually get to this exciting point on my website. And I'll have you to thank Jim! :-)
BTW, how do I bookmark again? LOL (seriously)
Reply
bpais1 Premium
Why, that could be a good training post for you to make, Liz.

"Bookmarking Made Easy!"

:-)

Jim
Reply
Top