 <p>This will hide the div that the player is in for 2 seconds while page loads.</p> <pre><code>&lt;script type = "text/javascript"&gt; $(window).load(function() { setTimeout(function() { $("#contentPost").show('fadeIn', {}, 500) }, 2000); }); &lt;/script&gt; &lt;style&gt; .video_box { display:none;} &lt;/style&gt; &lt;div class="wel_come_msg"&gt; &lt;div class="video_box"&gt; &lt;iframe width="100%" height="315" src="//www.youtube.com/embed/rDm7WstKG8s?autoplay=1" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>