You can use  dojo's compressor to help out.  It works on most (if not
all) javascript files since it actually embeds rhino (mozilla's
javascript engine) to determine what javascript is actually touchable
from the file.  This will drop out sections of the code that you
aren't using as well as compress the functions themselves (although it
doesn't rename them as it doesn't want to break the API)

http://alex.dojotoolkit.org/shrinksafe/

Jesse

On 10/22/05, Joe Black <[EMAIL PROTECTED]> wrote:
> I was curious what the rest of you are doing to keep the size of using
> scriptaculous manageable. It seems for just using drag and drop with a
> few effects you're looking at loading quite a lot of javascript.
>
> Does anyone know an automated way of seperating just the functions that
> will be used in the site from the rest?  I wouldn't want to have to do
> that every time scriptaculous is patched so I'm thinking there has to be
> a better way.
>
> Joe
>
>
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to