title: How to check whether a Jquery UI theme is loaded?
body: <p>Best practice dictates that my website that is heavily reliant on Jquery, and JQuery UI, which it sources from Google's CDN, should have a fallback in case that CDN fails for some reason.</p>
  
  <p>My question is, how do I go about doing this for a given theme? If it matters, I am using the Redmond theme.</p>
  
  <p>Currently I plan to use code something like:</p>
  
  <pre><code> if(!jquery){//load local file instead; }
      else if(!jquery.ui){//load local file instead; }
  </code></pre>
  
  <p>But I'd like a fallback for the theme file being loaded from Google too, if possible.</p>
  
  <p>Any ideas? :)</p>