El Porcharo
Well-known member
I have added a custom media site for embedding staff videos.
The embedding code comes with a javascript tag, which is calling the video hosting service engine.
I have noticed that this impacts quite much on the Page Speed but, since these videos are not embedded everywhere but on some threads only, is there any way to make this JS load only within threads where the code is embedded, or at least just on the thread view template?
This is the media embed code I've set up:
The embedding code comes with a javascript tag, which is calling the video hosting service engine.
I have noticed that this impacts quite much on the Page Speed but, since these videos are not embedded everywhere but on some threads only, is there any way to make this JS load only within threads where the code is embedded, or at least just on the thread view template?
This is the media embed code I've set up:
Code:
<div class="bbMediaWrapper">
<xf:js src="https://embed.voomly.com/embed/embed-build.js"/>
<div class="voomly-embed" data-id="{$id}" data-ratio="1.7" data-type="v"></div>
</div>
Last edited: