Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 2984 invoked from network); 4 Jan 2006 05:38:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jan 2006 05:38:29 -0000 Received: (qmail 75337 invoked by uid 500); 4 Jan 2006 05:38:28 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 75001 invoked by uid 500); 4 Jan 2006 05:38:27 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 74990 invoked by uid 99); 4 Jan 2006 05:38:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2006 21:38:26 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of awiner@gmail.com designates 64.233.184.199 as permitted sender) Received: from [64.233.184.199] (HELO wproxy.gmail.com) (64.233.184.199) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2006 21:38:26 -0800 Received: by wproxy.gmail.com with SMTP id i6so476355wra for ; Tue, 03 Jan 2006 21:38:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uBh4a71uYJK/43dSNoNIIWcNlbbPGWK1ywCx9SXUUWxTVD7BU4UoBB/+e0zexzPVLlh6lLDFmCdUC7Z0J2xGdQRyEOsfueLwmpeOrLoQmXxE3ipUy4mQA4f3Buhl/QIcrf0n8mtdyq50HxCkYRd1nlHDE2GMWFmAbZMVGRbQYHU= Received: by 10.65.119.10 with SMTP id w10mr696834qbm; Tue, 03 Jan 2006 21:38:05 -0800 (PST) Received: by 10.65.97.2 with HTTP; Tue, 3 Jan 2006 21:38:05 -0800 (PST) Message-ID: <6dac79b90601032138l532babfj768e36d9beba4e75@mail.gmail.com> Date: Tue, 3 Jan 2006 21:38:05 -0800 From: Adam Winer To: MyFaces Development Subject: Re: Prototype library and portlets In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <5a99335f0601030529t5ce41f70r855b514365b4ff29@mail.gmail.com> <5a99335f0601030624q76f12ddfyb70dbe955918a42e@mail.gmail.com> <16d6c6200601030928g7281c672wafc68c8a7fbe4b4f@mail.gmail.com> <16d6c6200601031007t177ca6dcme48e1173aed072c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Werner, ADF has some technology that may be helpful here (when it arrives, grumble, grumble...) http://tinyurl.com/999qe http://tinyurl.com/7vn42 Cheers, Adam On 1/3/06, Werner Punz wrote: > Actually this all or nothing or common ground approach is not what I had > in mind. > > What I am thinking of is something along these lines. > You already have some kind of dynamic loading infrastructure in there > with > > dojo.require("dojo.a"); > dojo.require("dojo.b"); > > now the problem as discussed is that this triggers > xmlhttp requests and is slow > > the alternate solution to this dynamic linking is a static linking via > an ant build to drop everything into a single file. > > Also bad, because one time you download a single huge file (well > compresset but still) > > This is a viable approach for a webapp but not for a component library > where one component needs part a of dojo and part b and another one > needs part a and c. > > The infrastructure is there to make dynamic includes upon the given > needs of the components currently used. > > So theoretically if only one component is loaded than an include of part > a and b is done. > > If the second one is added an additional one for part c also is done. > > It is sort of a semi dynamic linking where myfaces adds the needed > includes and neither the build system nor the javascript runtime. > > You get the benefits of both approaches that way, less code download > because only the parts needed are loaded and still excellent browser > caching, due to standard javascript includes. > > So my question, does dojo already support such an approach? > > Werner > \