What is jQuery? and how can I start using it? 3 Easy Steps!
These instructions are to help all you jQuery newbies out there who might be using jQuery for the first time and are wondering “how do I set jQuery up?”. Well there are a two different ways to do this:
The first way is to self host your jQuery package:
- Download the latest jQuery Package
- Save it in a folder called “js”
- Include this line in your web page:
Note: There are 2 versions of jQuery, a minified version and a source version. I recommend that you use the minified version as it is smaller in size and will make your web page load faster. The Benefits of jQuery are many but the main difference between the jQuery source version and the jQuery minified version is that the jQuery source version is human readable for you to check how the various jQuery functions are put together.
The second way is to load your jQuery package “on the fly” Load jQuery with Google Libraries API.
I would recommend to use the first method and host jQuery package yourself but the second method is good also: See Benefits of Google hosted jQuery.
Sam Deering has 15+ years of programming and website development experience. He was a website consultant at Console, ABC News, Flight Centre, Sapient Nitro, and the QLD Government and runs a tech blog with over 1 million views per month. Currently, Sam is the Founder of Crypto News, Australia.
Jump Start Git, 2nd Edition
Visual Studio Code: End-to-End Editing and Debugging Tools for Web Developers