Something I came across in my Twitter feed... LABjs
On Wed, Dec 9, 2009 at 6:54 AM, Frédéric <f...@gbiloba.org> wrote:
> Le mercredi 9 décembre 2009 11:25, T.J. Crowder a écrit :
> > Your best bet for something like that is to have a build process that
> > combines the scripts (and then minifies them), and then include the
> > resulting single script with just one script tag. Reading lots of
> > individual script files will be quite slow, because browsers typically
> > will load only one or two at a time, and it takes very perceptible
> > time to individually retrieve even three or four scripts in addition
> > to the other resources on the page. Latency kills.
> I see.
> > I don't currently have a good recommendation of a build tool to use
> > for this, but if it's just combining files and then running them
> > through jsmin or something similar, any of the usual suspects (rake,
> > ant, etc.) should be able to manage it.
> I'm not looking for a minimizer, but only to solve dependencies... I guess
> it needs to introduce a specific tag in the code, like the Google Closure
> Compiler does. For example:
> // @include another_script.js
> Maybe this as already been discussed here? Did anyone already write such
> > Google's just released their Closure Compiler, which handles doing
> > this (including dependency management, although it's a bit of a pain
> > to configure dependencies at present based on comments in the
> > discussion group) as well as handling removing unused code and various
> > other optimisations. It's still very new:
> > http://code.google.com/closure/compiler
> Well, dependencies is the only thing I'm looking for :o/
> If it does not yet exist, I will try to write my own tool (in python, as
> familiar with this language).
> Thanks for your help.
> You received this message because you are subscribed to the Google Groups
> "Prototype & script.aculo.us" group.
> To post to this group, send email to
> To unsubscribe from this group, send email to
> For more options, visit this group at
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at