javascript load in mobile browser
<p>I have applied this javascript in my website to hide a certain element when the browser width decreases in size. </p>

<pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
        $(window).bind("resize", function() {
            $('#slideshow').toggle($(this).width() &gt;= 960);  
        }).trigger("resize");
    });
&lt;/script&gt;
</code></pre>

<p>But in mobile browsers it displays the element quickly before removing it. Does anyone have any idea how to solve this?</p>
