78 responses to “How To Use Google Hosted jQuery In Your WordPress Theme”

  1. Tom

    It is written in jquery which works quickly, that’s why I like it

    1. Ryan

      jQuery is definitely a great tool, and there are countless reasons that I love it, haha.

  2. Anita

    So what’s the point of this Ryan? Will I see a difference in my website load speed? (sorry I’m not very tech savvy :P )
    Anita’s latest post …Small kitchen design secrets from the prosMy Profile

    1. Ryan

      Hi Anita,
      Sorry, I should have elaborated in my original post, haha.

      You should see improved loading speed of the jQuery script on your website using the version hosted by Google. As I mentioned, they use a CDN, or Cloud Delivery Network. This means that the script is hosted on physical servers around the world. The one that is closest to the visitor, will be the one that is loaded.

      Along with the CDN, there is also a large possibility that they already have the jQuery script saved in their cache. A lot of websites use Google’s jQuery. If the user has visited a site that has the Google version, the browser will call the version that is already cached, so they won’t even need to download it again at all.

      It is also one less call that the browser needs to make to your server, which will cut down on loading time.

      Hopefully this helps clear it up a little bit more, and if you have any other questions please feel free to ask!

    2. Mohit

      Thnx for this post this post is very helpfull

  3. LMargison

    Just out of curiosity, is there a WordPress plugin to do this?

    1. Ryan

      Hello,
      I did a quick search, and I was able to find the Use Google Libraries plugin. It seems like this might do the trick. I haven’t looked into the plugin itself though, and when you can, it is usually better to do things yourself as opposed to relying on a plugin. Plugins are great, but they can also add some bulk to your blog and slow down loading times.

  4. James

    I remember when I first heard about this, thinking how it would be a great tool to speed up some slow sites.

    It’s beyond my capability, but I’m hoping that more and more WP developers start integrating it into their themes/plugins. Speed rules the Web.
    James’s latest post …The eye has itMy Profile

    1. Ryan

      Hey James,
      It definitely does help speed up your blog. If your current theme doesn’t support it, all you have to do is add one of the above mentioned lines of code.

      And yes, speed definitely does rule the web.

  5. roppets

    Hey thanks for this post. Although I can’t really understand much of it. lol

    Our site’s performance has slowed down. Too many plugins and jquery scripts i guess.

    1. Ryan

      Too many plugins and scripts can definitely slow down your site. You really want to keep them to a minimum, to keep page load speeds down. What is it in particular that you don’t understand? I would be more than happy to try and explain clearer.

  6. smu

    great article.thanks a lot

    1. Ryan

      Thanks Smu!

  7. Ted

    Ryan,

    Is this really worth the effort? How much performance increase (loading time decrease) should a person expect to see by implementing the changes to their WordPress theme?
    Ted’s latest post …Best Link Building Methods For BlogsMy Profile

    1. Ryan

      Hey Ted,
      You do bring up a valid point. jQuery itself is < 100kb, so it really isn't a significantly large file by any means. I did a search, to try and see if I could dig up some results of performance testing but was unable to find much. My thoughts are that any steps you can take to increase performance, no matter how nominal, are worth it. Visitors, and Google, love fast page load times. And there is a good chance that a lot of your visitors have the Google Hosted jQuery cached, so it is one less file they need to load.

  8. Michelle

    Awesome,ii a very happy when my friends share this to me i never knew about this article article till i find it.this is a big help in finishing my project.

    1. Ryan

      Hey Michelle,
      I’m happy to hear that this has been useful to you! Good luck with your project!

  9. jasmine @ Volkswagen for less

    Speed is really important. I haven’t tried this, maybe I have to research on my own to further understand it. . but thanks for sharing!

    1. Ryan

      Hey Jasmine,
      Is there something in particular that you don’t understand? If you have any questions, feel free to ask. I’d love to try and answer them for you!

  10. polly

    thank you so much for sharing this one.. i never thought of this before, guess i really have to learn more about this kind of stuffs to help me become a better blogger!
    polly’s latest post …- DATING TIPS FOR WOMENMy Profile

    1. Ryan

      Hey Polly,
      No matter how much you know, there is always more to learn, haha. I’m glad that you were able to find this helpful!

  11. danny

    Great information! this is just what i need! thank you so much for sharing this one.. hope that i can be more familiar with it!
    danny’s latest post …TEENAGE DATING SITESMy Profile

    1. Ryan

      Hey Danny,
      I’m glad you were able to find this useful! Thanks for the comment.

  12. iownies

    nice article youve got here thanks a lot hope this code helps me in my wordpress theme. ^__^

    1. Ryan

      Hi Iownies,
      I am glad that this helped you out! Good luck with your WordPress theme!

  13. Lee | Money4Invest

    Thanks for sharing how to use Google Jquery in wordpress. I will try it and hope to get faster speed.
    Lee | Money4Invest’s latest post …20 Cute Mid Autumn 中秋节 Wallpapers for Free DownloadMy Profile

    1. Ryan

      You’re welcome Lee! I hope this helps you out!

  14. Wendy

    You are quite convincing! I will definitely try the Google Jquery in wordpress.. Thanks for sharing!
    Wendy’s latest post …Luxury Chalet RentalsMy Profile

    1. Ryan

      Hi Wendy,
      You are welcome! If you have any questions, feel free to ask!

  15. Raxe Advertising

    Thanks for the info, it is exactly what I’ve been looking for. Nice one!

    1. Ryan

      You’re welcome! I’m glad I could help.

  16. the rock cena

    Hey thanks for this post. Although I can’t really understand much of it!
    the rock cena’s latest post …The Rock and CenaMy Profile

    1. Ryan

      Was there anything in particular that you didn’t understand? If I can, Id love to help clear up anything that you might need help with.

  17. manchester magazine

    I recently came across your blog and have been reading posts. I thought I would leave a comment. I don’t know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.

  18. Cameron

    Well I am not very familiar with this but thanks to your information…
    Cameron’s latest post …What Is Spam Bully?My Profile

  19. Stephen Jack

    If someone have the know how of how jquery works or even javascript with the little information of HTML i don’t think it will be much difficulty to use the jquery hosted by Google
    Stephen Jack’s latest post …Honeycomb Android 3.0 ReviewMy Profile

    1. Aylton

      hi, very great this blog.

      1. Ryan

        Thank you Aylton!

  20. How to Optimize Your Website's Loading Time and Performance | Search Engine People | Toronto

    [...] Head on over to Google Libraries API and see if you can take advantage of this great service. If you are running WordPress, check out an article that I wrote earlier on How To Use Google Hosted jQuery In Your WordPress Theme. [...]

  21. edmond0925

    Thank you for the great post! It may be old but it’s still working for me!
    edmond0925′s latest post …How I Jump HigherMy Profile

  22. Barbara

    Although some points of your post is difficult for me to understand… I guess I learn something from it, Thanks for sharing those important info about jquery works.
    Barbara’s latest post …Learning To Deal With Panic AttacksMy Profile

    1. Ryan

      Hi Barbara,

      Was anything in particular confusing for you? If you have any questions, please feel free to ask!

  23. kim

    I enjoyed reading your post. Thank you so much for sharing this kind of information i really appreciate it. I will surely try this and i’m hoping this would help me to become a better blogger and to gain more speed. Keep up the work Ryan.
    kim’s latest post …My Arowana Is Not Eating No Matter What I Do !!!My Profile

  24. RachelAng34

    I like it because it is written in jquery which works quickly.
    RachelAng34′s latest post …Gadgets Reviews News And MoreMy Profile

  25. Jewel

    i knew i would learn something valuable from this post :D thanks for sharing!
    Jewel’s latest post …What are the Health Risks Associated with Black Mould?My Profile

  26. Ethel

    as a newbie, i totally appreciate your post :) thank you.
    Ethel’s latest post …Holiday Accidents Compensation ClaimsMy Profile

  27. olivia34newton

    same with ethel, i’m a beginner and i truly appreciate all the information you have gathered in your post. thanks
    olivia34newton’s latest post …1300 numbersMy Profile

  28. Peter

    Dear Ryan,
    I have study programming at school: C, Java, Labview, Matlab. Now, I want to design myself a web. What kinds of language must I know? Do they easy to study? What is the most popular?
    Thanks a lot.
    I have visited here http://www.800artdirectory.com/artists/design/ and found something useful

    1. Ryan

      Hi Peter,

      There are many languages that are used in web development, but learning markup is a good start. HTML / CSS are the basic building blocks, and necessary for any website.

      From there, it depends which side of web development you want to be on. Front end or back end. What are you mostly interested in?

  29. joyce

    I really appreciate your post..Thanks for sharing it..
    joyce’s latest post …Getting Pregnant FasterMy Profile

  30. Celeste

    I want to learn different language..Thanks for sharing this useful post..
    Celeste’s latest post …Who Makes the Highest Quality E-CigMy Profile

  31. Tümay Kılınç

    It’s a good idea to let google host the jquery file if you are on a shared hosting.

  32. Gracie

    This post is really had a great idea..I really want to learn different kind of language..Thanks for sharing this inspiring post..
    Gracie’s latest post …PPIMy Profile

  33. Erricch

    Hi…Is this really possible?Well this is the first time I have heard ofthis…
    Erricch’s latest post …Everything You Need to Know When Apply for Auto LoanMy Profile

  34. Liz

    Nice tutorial. Very useful and so easy to understand. :)
    Liz’s latest post …Free Directory List from Virtual Media OptionsMy Profile

    1. Ryan

      Hey Liz,

      Glad I was able to help out!

  35. Liz

    I love writing tutorials too but I am not well versed with PHP. Maybe I can check back for more to exchange ideas with you. Hope to see you on my site. Thanks.
    Liz’s latest post …H&R Block Promo Codes 2012My Profile

  36. Ian

    A really helpful tutorial – thanks!

  37. juvesatriani

    hi..nice info you wrote here..i want to know about how to minimize jquery script. Sometimes theme developer offer newbie like me with a lot jquery tools to build “anything/anyshape you want “wordpress based sites . Though finally we`ve only use 1-3 scripts only :) Its safe to delete another useless scripts ? ( e.g. variation of slider scripts etc ) Thanks

    1. Ryan

      Hello,

      I can’t really recommend if you should delete or remove scripts without seeing what they are. If they come with a plugin, you should probably keep them unless you know 100% that they will not break anything.

  38. Edd

    Thanks for sharing such an awesome post. This will definitely help improve work flow and also reduce page load times. Keep up the good work Ryan!
    Edd’s latest post …Designing A Brand LogoMy Profile

    1. Ryan

      Hey Edd,

      Glad I can help! Thanks for commenting.

  39. Thomas Bennett

    You should point out that is better to use your local version and then have the Google version as a fallback. Or at least set it up to check in case Google is down for some reason, although that does seem silly, I know…

    1. Ryan

      Thomas,

      Excellent point! I myself like to use Google Hosted as my primary script, and then have a local fallback. That way you still see the benefits of the CDN.

      Thanks for the response!

  40. Mrs.Batista

    Excellent tips! I will always keep this in mind.. Bookmarked.. DONE!
    Mrs.Batista’s latest post …Wedding MateMy Profile

  41. Rebecca Gill

    Love the idea of a CDN, yet I’ve not yet found one client willing to pay for the service. Some day…
    Rebecca Gill’s latest post …Our New Child Has Finally Arrived: A Genesis Theme StoreMy Profile

    1. Ryan

      Hi Rebecca,

      The good thing about using Google Hosted Scripts is that you don’t need your own CDN for them, as they use Google’s. There are also free alternatives, like CloudFlare that may help you out!

      Good luck!

  42. Laqzya

    Excellent tutarial! This is the post what exactly I was looking for.This post will help a lot.

  43. Dreisbach

    did not really take care of my main problem but nevertheless kudos anyways

    1. Ryan

      Hey There,

      What problem are you experiencing? If you elaborate, maybe I can help you out, or at least point you in the right direction.

  44. Jen Franklin

    Great post, I have jquery on one of my sites and for some reason I also have a jquery page indexed in the serps and I dont understand why. May be i set it up wrong. What do you think?
    Jen Franklin’s latest post …Vigrx PlusMy Profile

    1. Ryan

      Hi Jen,
      You shouldn’t have a jQuery page indexed. jQuery is a script, so it should load like the rest of your Javascript files. Do you have a link that you can point me to? I can take a look if you’d like.

  45. George Stephanis

    You really should be pointing people at the

    //ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js

    url instead. Otherwise you’re hardcoding an outdated version of jQuery that will break plugins that require functions that come bundled in the newer versions that come with WP.

    jquery/1/jquery.min.js will always pull in the newest version in the 1.x branch

    1. Ryan

      Ah, you are completely right. I updated my post, so it will now pull the latest 1.x branch. Thanks for the comment!

  46. Thanks

    Thanks for this post, i am a noob when it comes to anything coding, this will help me alot though to considering im on shared host, i am using Cloudflare so it helps load times a bit. I am going to be moving onto a VPS or Cloud soon, but of course being the noob i am i need to research that some as well lol.

    Anyway thanks for this, i was wanting to work on some jQuery drop down menus, and if this will descrease the load a bit even better.

    Cheers
    Thanks’s latest post …Winter In The ParkMy Profile

    1. Ryan

      I’m glad you found it useful! Thanks for reading :)

  47. jeff

    thank you for the introduction to this otherworldly tool!
    jeff’s latest post …Climbers and Dogs May 7, 2013 Midday Analytics ReportMy Profile

  48. karen millen cheap jack wills

    I was pretty pleased to uncover this site. I want to to thank you for ones time for this particularly fantastic read!! I definitely appreciated every bit of it and i also have you bookmarked to check out new things in your web site.

Leave a Reply

Link to your blog with ComLuv?

Comments may be edited or deleted if they contain offensive material or spam. Please contribute to the topic. I reserve the right to edit or remove comments upon my own discretion.

Back to Top ↑