Jump to content

Improve performance Youtube


godweb

Recommended Posts

Hi,

I'm looking for a solution to improve the performance of the "full width video player" layout, which is very heavy. The idea is to defer the Youtube scripts by following the tips found on Internet, such as https://www.codecanal.com/defer-parsing-javascript-youtube-videos/ or https://www.codecanal.com/defer-parsing-javascript-youtube-videos/

So, as first step I should change <iframe src= to <iframe src="" data-src= 

Is it possible to achieve this with an override?

I searched inside themes/default/elements/listing_detail_media.thtml and themes/default/media/video_gallery_detail.thtml but they are not the right files.

Regards

Link to comment
×
×
  • Create New...