> But how does it work for effects.js ? That file seems embedded /
> encrypted in the file scriptalaceous.js.

script.aculo.us finds the `script` element that you used for the main
scriptaculous.js file and reuses the path information from that when
loading files like effects.js and such. So you don't have to worry
about it.

Off-topic, but scripty's technique of loading each of its modules
piecemeal can be less than ideal for a publicly-facing website,
because it causes multiple HTTP requests where really one would do. If
you're loading from the Google CDN or something, I don't know, maybe
it doesn't matter or doesn't matter *much* (I'd have to test that);
but if you're hosting it yourself (as you appear to be doing if you're
worrying about paths), usually the first "load time optimization" tip
you'll see (for instance, here[1] or here[2]) is to minimize the
number of HTTP requests your page does. Scripty's demand-loading of
modules maximizes requests instead. If you take the Prototype file and
append the parts of scripty you want to use so you have a single,
consolidated file (and ideally throw that into a CDN), you're probably
better off -- you end up with one request rather than (potentially),
what, seven? YMMV, of course, and if you do that be sure to remove the
part of scriptaculous.js that does the demand-loading (which is most
of that file).

Caveat: I don't use scripty, so I've never had to do the above in the
real world. Perhaps someone with real-world experience will chime in,
and if they do, they're likely to have higher-quality information.

[1] http://developer.yahoo.com/performance/rules.html
[2] http://code.google.com/speed/articles/web-metrics.html

T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com

On Jan 2, 2:39 pm, Ed <evanpaas...@gmail.com> wrote:
> Hi everyone,
> By default the .js and .css files of Lightbox are at the same level as
> the .html page.
> I want to put the javascript files in a subfile "javascripts".
> For the files lightbox.js, prototype.js and scriptalaceous.js I assume
> I can simply adjust the path of these files.
> But how does it work for effects.js ? That file seems embedded /
> encrypted in the file scriptalaceous.js.
> Hope anyone can help...
> Happy new year,
> regards,
> Ed

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 

Reply via email to