Javascript packer
Thanks to Dean Edwards for releasing such a neat program. I’ve added a little option to convert script into bookmarklet. Basically, its just wrapping the compressed script with Bookmarklet script header
Well there was a single problem I’ve faced in IE6. Not sure why but version specific jQuery v1.3.2 on Google may not be compatible with IE6.
1 2 3 4 5 6 7 | <!-- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> --> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"> <script type="text/javascript"> (function($){ //code here })(jQuery); </script> |
For some reason it says “jQuery not defined”. Using 1.3.1 on Google solved the problem.
You can check out the packer here.
[EDIT]
There seems to be a problem with http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js with IE. Instead, consider using http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js.
