Can we compress minified version of jquery 1.3.1

well,
we have found that query 1.3.1 is around 55kb
well it is not a big problem but why not to compress it,if we can

i have been using compressed version of 1.2.6 which is around 28kb only…(the one found in jquery site is around 53kb)
i found it in some script…
it use to work in most of the codes till now
but lately i found that i need atleast 1.3.1 to get one code work…

now is there any way to even compress that 1.3.1 minified version…?

i think it is possible as we see the compressed version of 1.2.6 version
which is like this

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?‘’:e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!‘’.replace(/^/,String)){while(c–)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return’\\w+‘};c=1};while(c–)if(k[c])p=p.replace(new RegExp(’\\b’+e(c)+‘\\b’,‘g’),k[c]);return p}('(H(){J w=1b.4M,3m$=1b.$;J D=1b.4M=1b.$=H(a,b){I 2B D.17.5j(a,b)};J u=/[1](<(.|\\s)+>)[^>]$|^#(\\w+)$/,62=/^.[^:#\\[\\.]*$/,12;D.17=D.44={5j:H(d,b){d=d||S;G(d.16){7[0]=d;7.K=1;I 7}G(1j d==“23”){J c=u.2D(d);G(c&&(c[1]||!b)){G(c[1])d=D.4h([c[1]],b);N{J a=S.61(c[3]);G(a){G(a.2v!=c[3])I D().2q(d);I D(a)}d=}}N I…

just part of it…
but we dont know what was it compressed with
most of the javascript compressor dont work on minified version as it is already compressed to 1 level…
thanks


  1. ^< ↩︎

That’s the Dean Edwards packer which packed that code.

I’d suggest that you use jQuery 1.3.2 though, as that is the next major stable release after 1.2.6

well,i think you got me wrong.

We are NOT asking how the minified version that is available for the download in jquery.com compressed…

rather as i say,that 1.2.6 (we found in a script) seems to be compressed with something other because of which it was just 28kb only.
(not 53kb as 1.2.6.minified version is…)
so we are searching for that optimized compressor…

or other possibility may be some jquery expert removed unnecesary codes from 1.2.6 and then compressed it bcoz of which it has been only 28kb

thanks

Can you post this 28kb jquery you speak of? The entire 28kb please.

ok,here you go
EDIT
it is called jquery-1.2.6.pack.js and use to work with most of the scripts till now…

EDIT: :smiley: i posted whole code then when i open this page the browser crashed…may be bcoz of codes
so i think i need to find some free file host…
ok i will find one and upload that file soon

thanks

That is identical to the packed version of jQuery 1.2.6 from http://docs.jquery.com/Downloading_jQuery

You will see that 1.2.6 is the last version of jQuery that was provided as a packed file.

That doesn’t prevent you though from using the Dean Edwards packer to create your very own packed version.

Packing the min version of jQuery 1.3.2 results in
compression ratio: 40166/57272=0.701

While packing the uncompressed jQuery 1.3.2 results in slightly smaller code
compression ratio: 39351/124995=0.315

ok this is that file
http://www.filedropper.com/jquery-126pack
now it has been almost 30kb (2kb more than said)
which still is less than 54kb 1.2.6 minified version provided in jquery.com

but if we remove some comments i was able to make around 28.5

so love to see that 30kb ,1.3.2 version

thanks
but
the compressor was effect less for minified version ,in fact it increased the size to 6okb

and i brought the original full file from jquery site and compressed it…still i could not get it less than around 54-55kb which is what jquery.com minified version is now…

any way thanks…

I think you may be misinterpreting the results.

jQuery 1.3.2: 124,995
jQuery 1.3.2 when packed: 39,351

jQuery 1.3.2 min: 57,272
jQuery 1.3.2 min when packed: 40,166

The 39,351 (38.4 KB) version is the smallest that you are likely to find.

39351 / 1024 = 38.4287

ok
any way can you upload 38kb version of jquery 1.3.2 file?

thanks

Assuming you serve the js gzipped, the final amount of bytes is very similar regardless of whether you used packer, or just minified it using something like the yahoo compressor, or googles closure compiler.

packer is impressive, but realize it’s doing stuff along the same lines as what gzip does. The drawback is that the browser needs to eval() to uncompress it on every page load, whereas a browser will ungzip it once, and store it uncompressed in it’s local cache.

Testing with 1.3.2, I still get the smallest size with googles compiler + gzip.

That’s why the packed version was discontinued. By using the minified version you get the smallest file being sent in the most efficient way via gzip.

You would only pack the file if using antiquated web hosting that doesn’t allow gzip.

Thank you felgall, this is the information that I was looking around for earlier, to try and understand why the packed version was discontinued.