Adding JQuery support in Blogger

While I was writing some posts in preparation for this blog, I realized that it would be nice to have JQuery support in Blogger.

To enable JQuery in your Blogger page, go to the "Template" section of your blog and click the "Edit HTML" button.

Right before the </head> tag, paste the following:

1
2
3
<!-- including JQuery support -->
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>

Note that this code will implement the current version of JQuery up to the date of this post. If you want to be sure to be using the latest version, check out this link and update the code above accordingly:

http://jquery.com/download/#using-jquery-with-a-cdn

After that, click the "Save template" button and you are all set.