Embed Video vs Lightbox

hi

I have been doing some reading about enhancing speed on our site and many resources say it is best not to embed videos, but rather place them in a lightbox.

Are you able to just clarify if this is the case with X? Will embedding a YouTube video slow the site somewhat rather than placing the same video in a lightbox or is it much of a muchness?

cheers

Hi Guy,

To Measure the enhance of the performance I would do the following.

1- Select a page where you have your videos and run tests o GT Metrix and Pingdom or whatever tool you choose.

2- Save those pages as Cornerstone templates - so you have them saved and avoid re-working if you decide to keep the current design.

3- Change your embed videos for images which will launch the lightbox.

To do that, add an image, link it to the video.

Add a class to the image lightbox-video-1

Add a raw code element and add : [lightbox selector=".lightbox-video-1"]

Save it, check if the lightboxes are working, if you have more then 1 lightbox use multiple lightboxes selectors on the same raw code element with different launcher classes.

Like that you will see what the performance enhancement you will get out of it.

Hope it helps

Hi Joao

Thanks so much for your reply

Actually I assumed Themeco would already have that kind of speed information.

I really don’t wish to add an image to a video clip for the purpose of testing as I would not have an image associated with the video in reality. Currently it is just an embedded YouTube video and I was just curious as to whether I would get better performance having the video inside a lightbox instead.

Thanks for your reply

Regards

Hi there,

Thank you for writing in. I do not think there will be a significant difference between two approaches.

Thank you.

cheers Christopher and thanks for your reply

No problems. I had just read in an article that a better way to do the video was in a lightbox for improved speed, but if you don’t think there is an issue, I have no problem with that

Regards

Hi there,

You can have it in a lightbox, it only means it’s going to load just once you open it. Hence, yes a bit faster than a video embedded within the page. Plus, it depends on the lightbox, if your video is an inline type, then it’s loaded along with the loading page, which makes no difference in loading speed and performance. And if you’ll open the lightbox upon page load, then there is no difference in loading speed too.

It’s like lazyloading for images, but in lightbox, it will only load the video once you open the lightbox.

Thanks.

hi Rad

Apologies for the delay in replying. Thanks so much for the reply

OK, so possibly a little faster having the video in a lightbox rather than embedded

Regards

You’re so much welcome!