1. What is jQuery?
jQuery is the most widely used and popular JavaScript library in existence. It has a variety of functions written within it that speed up the process of adding animations, making XML (ajax) requests, or manipulating the DOM (Document Object Model) just to name a few. There are countless other use cases where implementing some jQuery script could radically speed up the development process of your webapp.
2. How does it help us as developers?
jQuery is important because it allows us to quickly and easily access functions and features in a single line that otherwise would require dozens of lines to program the logic behind. This radically speeds up the development process, especially if you familiarize yourself with the jQuery codebase early on.
3. Why do we have 2 version of jQuery - minified and uncompressed?
Version 1âthe uncompressed versionâis used mainly for developers to read and understand the content of the jQuery library. It contains comments, easily humanly read code, and white spaces to break up linesâŚhowever it is rather large. This is where the second version comes in.
Version 2âthe minified versionâis much more lightweight than itâs larger sibling discussed above. It accomplishes this by removing the unnecessary whitespaces and comments to create a âbare-essentialsâ flavor of jQuery that still has all the same functionalityâŚbut without the added weight and speed reductions that are the hallmark of Version 1. This version is useful for deployment on a final product to speed up loading times, while the previous and larger Version 1 is good for programers who are trying to understand a function or aspect of the library in more detail. Examining anything in the minified library is an absolute nightmare.
Despite the radical differences, both were integral in the mass adoption of the library among the development community.