 <p>As far as I know the content isn't loaded when the div's display style is set to none.</p> <p>Try setting something like this</p> <pre><code>&lt;div style="width: 1px; height: 1px; position: absolute; top: -9999px; left: -9999px;"&gt; &lt;div id="player"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre>