It's worth checking what your embed code is for YouTube. If you're using the old style <object> embed code rather than the new style <iframe> embed code, then I recall this may have performance issues.
It may also be dependent on whether you are being served the flash player or their newer HTML5 player. The latter will have better performance in newer browsers.
<iframe width="500" height="300" src="https://www.youtube.com/embed/{$id}?wmode=opaque" frameborder="0" allowfullscreen></iframe>
It may also be dependent on whether you are being served the flash player or their newer HTML5 player. The latter will have better performance in newer browsers.
add controls=2
<p><iframe width="500" height="300" src="https://www.youtube.com/embed/{$id}?wmode=opaque&controls=2" frameborder="0" allowfullscreen></iframe></p>
This is what I have. I have whole threads stuffed with YouTube embeds and the pages are fine. I also add a <p> tag to force them onto new lines, keeps it tidier.
Code:<p><iframe width="500" height="300" src="https://www.youtube.com/embed/{$id}?wmode=opaque&controls=2" frameborder="0" allowfullscreen></iframe></p>
<p><iframe width="500" height="300" src="https://www.youtube.com/embed/{$id}?wmode=opaque&controls=2" frameborder="0" allowfullscreen></iframe></p>
We did that several months ago, and it made the forum much faster. Especially for visitors on ancient computers and operating systems. The idea is that adding "&controls=2" keeps the embedded YouTube from preloading content. I would not even bother with an add-on: just edit what's there. I have @Jeremy to thank for this tip.try to add controls=2 to the youtube link in the embed code
Will test and hope still work for xf 2This is what I have. I have whole threads stuffed with YouTube embeds and the pages are fine. I also add a <p> tag to force them onto new lines, keeps it tidier.
Code:<p><iframe width="500" height="300" src="https://www.youtube.com/embed/{$id}?wmode=opaque&controls=2" frameborder="0" allowfullscreen></iframe></p>
have you tested it?Will test and hope still work for xf 2
have you tested it?
Prefer to avoid the use of plugins if possibleXenForo 2 - [CinVin] Lazy Load YouTube Videos for Xenforo 2
This is a small add-on that defers loading embedded YouTube videos until the user clicks on the play button. A preview image is shown as a placeholder with the familiar YouTube 'play' button on top. The video is not loaded until the play button...aliensoup.com
Prefer to avoid the use of plugins if possible
We use essential cookies to make this site work, and optional cookies to enhance your experience.