Okay, so we've downloaded a version of jQuery…what do we do next, I wonder?
This is a really good question—let me reveal all!
jQuery has, over the years, become an accomplished library and is used in millions of websites around the world. While we can usually find a way to fulfill a need using the library, there may be instances where we have to provide our own patch or alteration, to satisfy our needs.
We can use a plugin, but that gets tedious after a while—it soon becomes a case of "plugin this, plugin that" syndrome, where we become too reliant on plugins. Instead, we can look to the override functionality within jQuery itself; yes, it has some risks, but as we'll see, it is well worth the effort. Throughout this chapter, we'll cover the basics of overriding jQuery, some of the benefits and pitfalls of doing so, and work our way through some examples of replacing the functionality. We will cover the following topics:
Introducing duck punching
Replacing or modifying...