1. What is jQuery?
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.