Bottom post of the previous page:
Sure does.PTRACER wrote: Ian, does that code stop YouTube-heavy pages from freezing as they load?
Now hopefully I've remembered this properly, grab this file off our server and upload it to yours (I think you could put it in the forums directory, I just put it in the route at the time, if you can't save it properly, let me know and I'll zip it up):
Code: Select all
http://www.v8thunderonline.co.uk/forum-youtubeembed.js
Code: Select all
<script src="http://www.yoursite.co.uk/forum-youtubeembed.js"></script>
Now find the closing </Body> tag and directly before that, paste:
Code: Select all
<script type="text/javascript">optimizeYouTubeEmbeds()</script>
http://www.v8thunderonline.co.uk/forum/ ... =18&t=7974
To disable it, if it don't work, just remove the optimizeYouTubeEmbeds() string from overall footer.
While you're at it, add the same to TBK cos that's the site it would work best on with the 50 embeds in the crash video threads