Sign In
Password Recovery Register

jQuery & jQuery UI from Google CDN w/ Fallback to Local

No description :/

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  <script type="text/javascript">
    if (typeof jQuery == 'undefined'){
      document.write('<script src="<?php bloginfo( 'template_directory' ); ?>/js/libs/jquery-1.6.2.min.js"><\/script>');
    }
  </script>
  <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js"></script>
  <script type="text/javascript">
    if (typeof jQuery.ui == 'undefined') {
      document.write('<script src="<?php bloginfo( 'template_directory' ); ?>/js/libs/jquery-ui-1.8.15.min.js"><\/script>');
    }
  </script>

Comments

Login or Register to comment.


Embed Me!

Feel free to adjust iframe width and height according to your needs.

<iframe width="800px" 
        src="http://www.emoticode.net/embed/javascript/jquery-jquery-ui-from-google-cdn-w-fallback-to-local.html" 
        height="400px" 
        frameborder="0"> 
</iframe>

Here's how it will look like.