<div id="videoDiv" style="z-index:-1;display:none;border:1px solid #a8a8a8;position:absolute;top:50px;left:50px;width:425px;height:425px;">
<div id="videoDrag" onmousedown="initVideoDrag(this)" style="height:25px;line-height:25px;background-color:#76899B;cursor:move;font-size:12px;" > <strong style="color:#fff;">视频窗口</strong></div>
<div style="z-index:1002;position:absolute;top:0px;padding:0px 0px;right:0px;height:23px;line-height:23px;background-color:#76899B;font-size:12px;"><span title="关闭" onclick="closeWin();" style="width:12px;border:0px;color:#fff;font-family:webdings;cursor:hand;">r</span> </div>
<div id="video" style="display:none;border:0px solid blue;">
<script type="text/javascript" src="http://ip:9000/xx.js"></script>
</div>
</div>
这个是我接手的这个工程前台加载的一个远程掉用视频的js,现在问题是如果我在页面中将这一段代码注释掉,加载速度大概能提高4到5秒。领导要求我将这段js的调用改成看视频的时候再加载,我试了很多方法貌似都不行,一改成调用时再加载就看不了视频了,不知道各位大大有没有遇到过类似的问题,帮忙指点一下