Posted By

matula on 01/26/11


Tagged

google jquery CDN


Versions (?)

Who likes this?

12 people have marked this snippet as a favorite

cplusplus
painteddigital
kendsnyder
maltem
matylla
imamo
thoaionline
Balamir
EPyLEpSY
A973C
lookingforsome
_duddy


Load jQuery from Google CDN, but fallback to local if it fails


 / Published in: JavaScript
 

  1. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
  2.  
  3. <script type="text/javascript">
  4. if (typeof jQuery == 'undefined')
  5. {
  6. document.write(unescape("%3Cscript src='/path/to/your/jquery' type='text/javascript'%3E%3C/script%3E"));
  7. }
  8. </script>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: on September 14, 2018

the 8 best monitor for photo editing under 500 the8best

You need to login to post a comment.