Ready to watch this entire course?
Become a member and get unlimited access to the entire skills library of over 4,900 courses, including more Developer and personalized recommendations.Start Your Free Trial Now
- View Offline
- What is AJAX?
- Making requests asynchronous
- Updating the DOM with getElementById
- Reading JSON files
- Working with jQuery and AJAX
- Sending and searching JSON data
- Incorporating CSS transitions
Skill Level Intermediate
So you load them both into your code in pretty much the same way. So let's go ahead and go to the front of the jQuery website and click on this Download link. Now, before you do that, see that there's two options here. You have the option of downloading a Production version or a Development version. Now, the Development version has a copy of all the code with comments that's super easy to read, but it's obviously a lot bigger. Whereas the Production is minified and Gzipped, which means that it's compressed, it has no comments, a lot of the variable names have been changed so that they're smaller, and it's really pretty impossible to read.
I want to make sure that from this Format menu, I choose Page Source. Make sure it's not in Web Archive. So I'll select that, hit Save, and now that saves it into our desktop, so I'm going to switch there. And what I need to do now is copy this into my server, so I'll copy that just by dragging it. I'm using Transmit as my FTP program, so there it is. It's already on my server. And now what I want to do is select the files that I need and open them up in my editor. So I've got all these files opened up in my editor.
But I'm not going to do that because I'm just using a local copy. So save it and now jQuery will load into my application, and it's ready for me to use. Loading up jQuery is normally done using one of the CDNs when you're in production, but keep in mind that if you're going to be offline and developing, then downloading a copy is a super-smart idea. One more thing: you should always load jQuery before your regular JS file. That way all the power of the framework is going to be available when you write your scripts.