Posted By

crispunk on 06/26/10


Tagged

ajax google jquery load


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

crispunk
nightshiftc
zreedeecom
frysteen


Check if Jquery Exist if not load it


 / Published in: jQuery
 

URL: http://www.plan-zero.org

If you are working on apps development to adapt on different sites that you don't have access to them, and need to load Jquery, but don't wanna load it twice this will help you !

  1. if (typeof jQuery == 'undefined') {
  2. <script type="text/javascript" src="http://www.google.com/jsapi"></script>
  3. <script type="text/javascript">
  4. google.load("jquery", "1.4.2");
  5. </script>
  6. }

Report this snippet  

You need to login to post a comment.