What's the difference between jquery.js and jquery.min.js?

Viewed 227369

What is the difference between jquery.min.js and jquery.js?

Which one has support for all functions?

12 Answers

jquery.min.js: this is the minified version of jQuery.

jquery.js: this is the regular version of jQuery.

By using minified version of files following advantages could be experienced hence better use it in your application.

  • It will drastically reduce loading times and bandwidth usage on your website.
  • It also improves site speed and accessibility, directly translating into a better user experience.

Minification has become standard practice for page optimization.

Developers tend to use spacing, comments and well-named variables to make code and markup readable for themselves. This is a plus in the development phase, it becomes a negative when it comes to serving your pages. When minified, comments and extra spaces will be removed saving up file size and reducing bandwidth of network.

Therefore, basically the functionality is exactly the same except the readability.

Related