title: How to load local files if CDN is not working
body: <p>I am using some CDN js and css files.</p>
  
  <p>I searched in Google that how to load local data if CDN is not working.</p>
  
  <p>i found a good link written like this</p>
  
  <pre><code>&lt;script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              if (typeof jQuery == 'undefined') {
                  document.write(unescape("%3Cscript src='JS/Plugins/jquery-1.8.2.min.js' type='text/javascript'%3E%3C/script%3E"));
              }
          &lt;/script&gt;
  </code></pre>
  
  <p>Yes its working but then i tried for another CDN network ,then its not downloading from local. if the CDN is not working then it is showing error in my page and the page is not working properly due to that missing that js file.
  means :</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      if (typeof jQuery == 'undefined') {
          document.write(unescape("%3Cscript src='Include/JS/JqueryPlugin/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>in the above case the local jquery.min.js is not downloading when the above CDN is not working .</p>
  
  <p>similarly how to do for CSS(searched in Google and not found any good solution).</p>
  
  <p>How to do know which CDN is not working and download respective files from local.</p>
  
  <p>Please help</p>
  
  <p>Thanks in advance</p>