title: how to generate headJS fallbacks
body: <p>How can I properly implement fallback for headJS and Jquery (if the CDN fails to load) within the head load function?</p>
  
  <p>I cant find anything on the documentation about fallbacks.</p>
  
  <p><a href="http://headjs.com/" rel="nofollow">http://headjs.com/</a></p>
  
  <p>My code is the following: (right now HeadJS and Jquery are loaded from CDN)</p>
  
  <pre><code>&lt;script src="//cdnjs.cloudflare.com/ajax/libs/headjs/1.0.3/head.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  // this loads jquery asyncrounously &amp; in parallel
  head.load("//cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js", "script1", "script2");
  if (head.screen.innerHeight &lt; 800) {
      /* code specific to VIEWPORT &lt; 800 */
      head.load("{T_THEME_PATH}/footable/js/footable.min.js");
      head.ready(function () {
          // some callback stuff
          $('.footable').footable();
      });
  }
  &lt;/script&gt;
  </code></pre>