Return to Snippet

Revision: 35551
at December 10, 2010 01:50 by Hyzac


Updated Code
<!-- Grab Google CDN's jQuery & jQuery UI. Fall back to local if necessary -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
    if (typeof jQuery == 'undefined') {
        document.write(unescape("%3Cscript src='/js/jquery-1.4.2.min.js' type='text/javascript'%3E%3C/script%3E"));
    }
</script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"></script>
<script type="text/javascript">
    if (typeof jQuery.ui == 'undefined') {
        document.write(unescape("%3Cscript src='/js/jquery-ui.min.js' type='text/javascript'%3E%3C/script%3E"));
    }
</script>

Revision: 35550
at November 10, 2010 06:41 by Hyzac


Updated Code
<!-- Grab Google CDN's jQuery & jQuery UI. Fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
  !window.jQuery && document.write('<script src="/js/libs/jquery-1.4.2.min.js"></script>'))
</script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"></script>
<script>
  !$.ui && document.write('<script src="/js/libs/jquery-ui-1.8.5.custom.min.js"></script>')
</script>

Revision: 35549
at November 10, 2010 06:37 by Hyzac


Initial Code
<!-- Grab Google CDN's jQuery & jQuery UI. Fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
  !window.jQuery && document.write(unescape('<script src="/js/libs/jquery-1.4.2.min.js"></script>'))
</script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"></script>
<script>
  !$.ui && document.write('<script src="/js/libs/jquery-ui-1.8.5.custom.min.js"></script>')
</script>

Initial URL

                                

Initial Description

                                

Initial Title
jQuery and jQuery UI CDN with fallback

Initial Tags
jquery

Initial Language
JavaScript