What better - Jquery file from my SERVER or from URL?
<script src="jquery.js"></script>
or
<script src='http://code.jquery.com/jquery-1.7.1.min.js'></script>
What better - Jquery file from my SERVER or from URL?
<script src="jquery.js"></script>
or
<script src='http://code.jquery.com/jquery-1.7.1.min.js'></script>
All too often, I find code similar to this when inspecting the source for public websites that use jQuery:
<script type="text/javascript" src="jQuery.min.js"></script>
If you’re doing this on a public facing website, you are doing it wrong.
Instead, I urge you to use the Google Hosted Libraries content delivery network to serve jQuery to your users directly from Google’s network of data centers. Doing so has several advantages over hosting jQuery on your server(s): decreased latency, increased parallelism, and better caching.
Better use this:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>