Skip to main content

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)



Source: Tips4all

Comments

  1. 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 ;-)

    ReplyDelete
  2. ...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)

    ReplyDelete
  3. 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;}

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

    ReplyDelete
  5. 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

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

    ReplyDelete
  7. 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.

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

    ReplyDelete

Post a Comment

Popular posts from this blog

[韓日関係] 首相含む大幅な内閣改造の可能性…早ければ来月10日ごろ=韓国

div not scrolling properly with slimScroll plugin

I am using the slimScroll plugin for jQuery by Piotr Rochala Which is a great plugin for nice scrollbars on most browsers but I am stuck because I am using it for a chat box and whenever the user appends new text to the boxit does scroll using the .scrollTop() method however the plugin's scrollbar doesnt scroll with it and when the user wants to look though the chat history it will start scrolling from near the top. I have made a quick demo of my situation http://jsfiddle.net/DY9CT/2/ Does anyone know how to solve this problem?

Why does this javascript based printing cause Safari to refresh the page?

The page I am working on has a javascript function executed to print parts of the page. For some reason, printing in Safari, causes the window to somehow update. I say somehow, because it does not really refresh as in reload the page, but rather it starts the "rendering" of the page from start, i.e. scroll to top, flash animations start from 0, and so forth. The effect is reproduced by this fiddle: http://jsfiddle.net/fYmnB/ Clicking the print button and finishing or cancelling a print in Safari causes the screen to "go white" for a sec, which in my real website manifests itself as something "like" a reload. While running print button with, let's say, Firefox, just opens and closes the print dialogue without affecting the fiddle page in any way. Is there something with my way of calling the browsers print method that causes this, or how can it be explained - and preferably, avoided? P.S.: On my real site the same occurs with Chrome. In the ex