I embed youtube video in my website like this:
<iframe width="320" height="180" src="http://www.youtube.com/embed/12345678"
style="border: none" allowfullscreen id="myVideo"></iframe>
This iframe's href downloads a this which is 2.7 KB
That download these:
- 287 KB http://s.ytimg.com/yts/swfbin/watch_as3-vf123456.swf
- 40.4 KB http://s.ytimg.com/yts/jsbin/www-embed-vf123456.js
- 26.7 KB http://s.ytimg.com/yts/cssbin/www-embed-webp-vf123456.css
- 0.5 KB http://i3.ytimg.com/crossdomain.xml
So even though the user didn't watch video yet, he downloads nearly 356 KB data. What would be a better way to show Youtube video in my website but load these data when user wants to watch video ?