This post is for beginners who have just started learning jQuery or about to start learning. It is very important to know that what to download and how to download jQuery. You can download the jQuery library from jQuery.com. if you go to jQuery.com, then you will find similar section showing in the below image on the jQuery.com website.
As you can see from the image, there are 2 version available of jQuery library.
And it is also showing the latest version number of jQuery library. The latest version of jQuery at the time of writing of this post is 1.7.2.
Why there are 2 version?
Well, if you have noticed the size of both the versions then there is a huge difference. The production version is of 32KB and development version is of 247KB which is almost 8 times higher then production version. The production version is minified and compressed version of jQuery library where development version is uncompressed version.
Development version is useful at the time of development because you can easily debug the code. And as jQuery is open source so you can easily make changes in the jQuery library as per your requirement. But after making changes in jQuery library ensure that you minify it. Read "How to minify your code".
While production version is useful when your website goes on production or final release as file size is small so it can save some amount of bandwidth.
I suggest you to read these post as well to get better understanding about how to install and use jQuery.
Feel free to contact me for any help related to jQuery, I will gladly help you.
As you can see from the image, there are 2 version available of jQuery library.
- Production (32KB)
- Development (247KB)
And it is also showing the latest version number of jQuery library. The latest version of jQuery at the time of writing of this post is 1.7.2.
Why there are 2 version?
Well, if you have noticed the size of both the versions then there is a huge difference. The production version is of 32KB and development version is of 247KB which is almost 8 times higher then production version. The production version is minified and compressed version of jQuery library where development version is uncompressed version.
Development version is useful at the time of development because you can easily debug the code. And as jQuery is open source so you can easily make changes in the jQuery library as per your requirement. But after making changes in jQuery library ensure that you minify it. Read "How to minify your code".
While production version is useful when your website goes on production or final release as file size is small so it can save some amount of bandwidth.
I suggest you to read these post as well to get better understanding about how to install and use jQuery.
- Always Minimize or Minify your JavaScript Code
- Always load your jQuery framework from CDN
- How to load jQuery locally when CDN fails
- How to always reference latest version of jQuery
Feel free to contact me for any help related to jQuery, I will gladly help you.


No comments:
Post a Comment