oEmbed vs. javascript for speedy video loads
-
We are getting ready to start adding videos to all posts, so I’ve been reading a lot about the best way to embed videos to avoid the dreaded page-load slowdown that results from using the (old) iFrame method provided by YouTube for embed code.
Several websites I found advocate using javascript and CSS, such as this one that claims this method is both mobile responsive and does not slow down the page load:
https://www.labnol.org/internet/light-youtube-embeds/27941/
However, I know that WP now natively supports oEmbed, but what I don’t know is how the oEmbed method compares to the old iframe method as well as the javascript/CSS method in terms of page-load speed….we need the leanest, fastest method possible because many of the posts already have a lot of content, images, etc and we don’t want to slow the page down further when adding video.
I’ve found lots of info on how to implement each method, but nothing that compares the page load speed between them.
Thanks for any factual data anyone can share!
- The topic ‘oEmbed vs. javascript for speedy video loads’ is closed to new replies.