JS defer and jQuery ready event
<p>I have added <code>defer</code> atribute to my jquery script to increase web page performance but now I get error <code>$ is not defined</code>. I need to execute JS code when page loads so I use jQuery.ready event but it do not work when defer is used.</p>

<pre><code>&lt;head&gt;    
    &lt;script defer="defer" src="@Url.Content("~/Scripts/jquery-1.8.2.min.js")" type="text/javascript"&gt;&lt;/script&gt;


    &lt;script type="text/javascript"&gt;
        $(document).ready(function () {
          //MyLoadCode
        });
    &lt;/script&gt;

&lt;/head&gt;    
</code></pre>
