Let Google host jQuery for you


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script src="http://www.google.com/jsapi"></script>
  2. <script type="text/javascript">
  3. google.load("jquery", "1.2.6");
  4. google.setOnLoadCallback(function() {
  5. //Code to be inserted in this area
  6. });
  7. </script>
  8.  
  9. /* the best way (fastest and most efficient implementation) */
  10. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
  11. <script type="text/javascript">
  12. $(document).ready(function() {
  13. //This is more like it!
  14. });
  15. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.