You are here: Blog » Code Snippets » Include Latest jQuery

Include Latest jQuery

jql

Here is a quick snippet which you can use to include the latest version of jQuery on your site.

 Some benefits of this method:

  • You’ll always be up to date
  • Protocol isn’t defined so it’s safe to load from site’s starting with both http and https
  • jQuery is served via a CDN so you don’t have to worry about uploading it to every server you work on
  • Minified to reduce file size for shorter load time

The Code:

 

Did you find this snippet helpful? Let me know.

This entry was posted in Code Snippets and tagged , by .

Author: justin saad

Justin Saad is first and foremost a husband and a father of four. He is also a web developer and designer who has been making websites for over twenty years. His company is called The Motech Network and his website is ClevelandWebDeveloper.com. In addition to building websites, Justin makes WordPress plugins and likes writing tutorials to help others learn about various aspects of web development.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">