Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Now let's take a look at when you would use jQuery and perhaps when you wouldn't. So first step, when to use jQuery. The first and most obvious reason to me is, when you're working on a project that already includes it. So if you're building a website in WordPress, Drupal, or if you're using a prototyping toolkit like Bootstrap or Foundation, those already include jQuery. So, you could feel free to use it. You might also use jQuery when you want access to plugins that do things that are useful to you in whatever project you're working. There is an enormous ecosystem of plugins available for jQuery, so if you're trying to do things that plugins accomplish, you may want to use jQuery for access to those.
And likewise, if you need your project to be as small as possible, if you're working in some kind of very constrained environment. Or, you know, if you're working on a JavaSript contest where all of your code has to fit in to one kilobyte or something, then jQuery is probably not the right choice. So here's my overall guidence on when to use jQuery and when perhaps you wouldn't. If you already have jQuery of course use it. So if you're working on a project that includes jQuery, the library, feel free to just use it and you'll be fine. If you're working on a project that you're originating yourself, something from scratch, any situation where jQuery isn't already included, just think about it after you have gotten familiar with it, and see if it's something that you really need.
There are alternatives which we're going to look at. So, for some of the functions that you're trying to access through jQuery, you may be able to use a smaller, faster library to get some of the same stuff. But jQuery is hugely popular, and there are lots of plugins and all kinds of reasons that you might want to use it. And if you think about it, and think you need it, go for it. So that's an overview of some reasons that you might use jQuery, and some reasons that you might not.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.