title: Best way to use Google's hosted jQuery, but fall back to my hosted library on Google fail
body: <p>What would be a good way to attempt to load <a href="http://code.google.com/apis/ajaxlibs/" rel="noreferrer">the hosted jQuery at Google</a> (or other Google hosted libs), but load my copy of jQuery if the Google attempt fails?</p>
  
  <p>I'm not saying Google is flaky. There are cases where the Google copy is blocked (apparently in Iran, for instance).</p>
  
  <p>Would I set up a timer and check for the jQuery object?</p>
  
  <p>What would be the danger of both copies coming through?</p>
  
  <p>Not really looking for answers like "just use the Google one" or "just use your own." I understand those arguments. I also understand that the user is likely to have the Google version cached. I'm thinking about fallbacks for the cloud in general.</p>
  
  <hr>
  
  <p>Edit: This part added...</p>
  
  <p>Since Google suggests using google.load to load the ajax libraries, and it performs a callback when done, I'm wondering if that's the key to serializing this problem.</p>
  
  <p>I know it sounds a bit crazy. I'm just trying to figure out if it can be done in a reliable way or not.</p>
  
  <hr>
  
  <p>Update: jQuery now hosted on Microsoft's CDN.</p>
  
  <p><a href="http://www.asp.net/ajax/cdn/" rel="noreferrer">http://www.asp.net/ajax/cdn/</a></p>