Why jQuery?
jQuery is very compact and well written JavaScript code .It increases the productivity of the developer by enabling them to achieve critical UI functionality by writing very small amount of code.
- Used to improve the performance of the application
- Used to develop most browser compatible web page
- Used to implement UI related critical functionality without writing hundreds of lines of codes
- It i fast
- It is extensible – jQuery can be extended to implement customized behavior
Difference between jQuery-x.x.x.js and jQuery.x.x.x min.js?
In terms of functionality, there is no difference between the jQuery-x.x.x.js and jQuery-x.x.x-min.js .jQuery-x.x.x-min.js is also called as minified version of jQuery.
jQuery-1.4.4.js file size is 178 KB and the jQuery-1.4.4-min.js size is 76.7 KB. If you are not using minified version of jQuery,then it will load the 178 kb file( jQuery-1.4.4.js).So it will take the much time to load the page and will hurt the performance.
So we can prefer using jQuery-1.4.4.js during development and jQuery-1.4.4-min.js when we move the code into production environment.
Use of jquery-x.x.x-vsdoc.js
Generally we will use jQuery-x.x.x-vsdoc.js to provide the intellisense support. We can even delete this file. But the thing is that it won't provide the intellisense support if we delete that file.
No comments:
Post a Comment