tags:

views:

257

answers:

8
+10  Q: 

jquery-min version?

i noticed that there is always a min version (stands for mini?) to most of the js libraries eg jquery.

what is the difference? less functions but smaller size?

is this someone should consider to use? (there are a lot of min versions out there)

+7  A: 

...in computer programming languages and especially JavaScript, is the process of removing all unnecessary characters from source code, without changing its functionality.

http://en.wikipedia.org/wiki/Minification_(programming)

Jonathan Sampson
Your link is missing the end bracket.
Jamie
+3  A: 

Minified versions just have whitespace removed, to make them faster to download. Otherwise, they are identical.

Steve Cooper
+2  A: 

no, exactly the same function, the text has been minimized to reduce the download, this means you cant really debug in it but you do get the same functionality

Pharabus
you mean i cant open the file and read it? of course i dont want to...if i would like to i just download the real instead of including it in every html header? or have i missed the point?
weng
you can open it and read it, it is just not very readable :) usually the none min file is used for development, the min file for production.
Pharabus
+2  A: 

Smaller size because all of the white space is removed from the file. Just open both files in text editor and you will see.

Jeremy H
+5  A: 

Its been "minified". All the functionaility is there, just in a minified version that is smaller for saving transfer bandwidth.

Things to become "minified":

  • Remvoing whitespace
  • Renaming some variables - such as function-scoped variables, not function names.

Here is an example

function myFunction(someReallyLongParamName)
{
    someReallyCrazyName = someReallyLongParamName;
}

could be come

function myFunction(a){b=a;}
Daniel A. White
+11  A: 

The functionality is exactly the same - just open the minified and the "normal" versions in a text editor and you'll see the difference.

The min-Versions are just there to provide reduced filesize, to save you bandwith and traffic ;-)

Mef
+2  A: 

This is a version of jQuery that has a smaller file size (minified). Same functions, just a smaller file that the browser has to download.

Tim S. Van Haren
+1  A: 

same functions...smaller size. Think of it as poor mans compression. They simply remove all unneccessary whitespace.

Vincent Ramdhanie