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)
Source: Tips4all
The functionality is exactly the same - just open the minified and the "normal" versions in a text editor and you'll see the difference.
ReplyDeleteThe min-Versions are just there to provide reduced filesize, to save you bandwith and traffic ;-)
...in computer programming languages and especially JavaScript, is the process of removing all unnecessary characters from source code, without changing its functionality.
ReplyDeletehttp://en.wikipedia.org/wiki/Minification_(programming)
Its been "minified". All the functionaility is there, just in a minified version that is smaller for saving transfer bandwidth.
ReplyDeleteThings 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;}
Minified versions just have whitespace removed, to make them faster to download. Otherwise, they are identical.
ReplyDeleteno, 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
ReplyDeleteSmaller size because all of the white space is removed from the file. Just open both files in text editor and you will see.
ReplyDeleteThis is a version of jQuery that has a smaller file size (minified). Same functions, just a smaller file that the browser has to download.
ReplyDeletesame functions...smaller size. Think of it as poor mans compression. They simply remove all unneccessary whitespace.
ReplyDelete