eli at media.berkeley.edu
Tue Feb 5 21:19:13 UTC 2008
I sent an email about this to Sakai-Dev recently, entitled
Here's what I said"
I just noticed that Sakai is using the packed version of jQuery, as
opposed to minified. (packed JS has been run through a redundancy
reduction algorithm but has to be run (eval) on the browser side in
order to be instantiated, while minified simply removes redundant
returns, whitespace and comments).
General consensus right now in the JS community is that packing was a
great idea but in real world practice takes more time to eval than
the time savings to download and that minified is better route,
usually coming with in 15%, or so, of the packed version, especially
when combined with gzip.
I've linked to one of the shorter articles on this subject (there are
I don't think that we're using gzip right now on our JS source, I
might be wrong. It's worth looking into if folks are worried about
making small performance increases in download times. I would suspect
that there are a lot of other things that we could do first that
would have a greater impact on improving the speed of Sakai.
On Feb 5, 2008, at 12:56 PM, Jonathan Hung wrote:
> Hi everyone.
> I have been researching ways of minifying / packing the Fluid code
> and came across some interesting resources in the process.
> CompressorRater (http://compressorrater.thruhere.net/)
> 4 JS compressors (JSMin, Dojo ShrinkSafe, Packer, and YUI
> Compressor) and gives you a comparison of the results.
> YSlow (http://developer.yahoo.com/yslow/)
> - a FireBug plugin that allows you to examine a website and
> determine why it is slow. It will report "violations" like poor
> Ant Script to JSMinify, Compress, and JSLint (http://henke.ws/
> - an ant script that runs JSLint, JSMin, and YUI Compressor
> - interesting that they run BOTH JSMin and YUI Compressor. YUI
> Compressor is supposed to be "as safe as JSMin, but better
> compression", so I wonder about the motivation for using both
> Just thought I'd share some of these resources. Please feel free to
> share your own resources as well. If there's enough interest, then
> perhaps this can make it into the Wiki.
> - Jonathan.
> Jonathan Hung / jonathan.hung at utoronto.ca
> University of Toronto - ATRC
> Tel: (416) 946-3002
> fluid-work mailing list
> fluid-work at fluidproject.org
. . . . . . . . . . . . . . . . . .
user interaction developer
ETS, UC Berkeley
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fluid-work