load file depending on browser size
<p>Just a quik question about the right syntax. I want to load the jquery file only if the browser screen is &lt; 1100px. </p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function() {
  if ($(window).width() &lt; 1100) {

    //load file

     }
  });
&lt;/script&gt;
</code></pre>

<p>I want to load src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js but can't find the syntax. </p>

<p>Thanks!</p>
