Category Archives: jQuery

Backup plan when loading the jQuery library from CDN

<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”></script&gt; <script type=”text/javascript”> if (typeof jQuery == ‘undefined’) document.write(unescape(“%3Cscript src=’/scripts/jquery-1.4.2.min.js’ type=’text/javascript’%3E%3C/script%3E”)); </script> Refer: http://www.frederikvig.com/2010/04/backup-plan-when-loading-the-jquery-library-from-cdn/

Posted in jQuery | Tagged , | Leave a comment