This will be the last post for this blog. I enjoyed writing about the ways in which I have used jQuery in my professional life - and I hope you enjoyed reading about it. This blog has covered the specific benefits of using jQuery in your projects. I would be remiss therefore to not at least mention the basic ways to add the power of jQuery to your site. Often when working on a When adding jQuery to your site you have two main options. You can either download the version of jQuery you want and host it on your own site, like so:
But the better decision would be to load jQuery from somewhere else, a content delivery network, the benefits to this are that you do not have to host the file yourself and you can access the minified version, which increases the speed of your site see:
I always go with Google myself as they are reliable and have the library hosted on a number of servers all around the world so there is not too high of a chance that they will all go down. One of the complaints I hear most is that jQuery slows down the site far too much. However, if you are using the minify version - there generally is not too much of a resource hit.
Using Google PageSpeed Insights if we take a look at a site that uses jQuery, such as JCU’s site, we can see the actual sizes of the jQuery libraries and how much space can be saved if the files are minified.
For all of the functionality that jQuery adds on, in JCU’s case a large portion of the WordPress plugins were written using jQuery, the slider on the homepage as an example - the extra size is worth it.


