On 8/17/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> > i have plenty of usecases where for different components i used dojo and
> i
> > stripped it down to just the widgets the component needed.
> >
> > or take scriptaculous, sometimes you want effects, other times just drag
> and
> > drop.
> >
> > you are assuming that each component will include the full version of
> the js
> > lib even though it only uses a small subset of it - probably not the
> case.
>
> But a lot of JS libs nowadays have a dynamic loading system
> themselves. DOJO had this from the start, and now YUI does has that
> too. So all components would load the bootstrap JS whatever that is,
> and then tel what sub dependencies it needs.
right and this is where the problem is.
lets say i have a yui modal window component. so i strip yui only to what
that needs. then i contribute a yui loader with a common yui id
("YUI_1_2_1"); all i have to contribute is the loader, and then it loads the
rest of the resources.
then someone else has a yui datepicker. they also contribute a loader with
id ("YUI_1_2_1"). but because i have already included modal window first in
my code it has already contributed its yui loader, so the datepicker's will
never be included. this only works if modal window component has all the
dependencies that the datepicker needs as well. which is my point - this
only works if you include full js libraries wiht every component.
-igor
Eelco
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>