On Fri, Oct 15, 2010 at 1:34 AM, stephanos <stephan.beh...@gmail.com> wrote:
>
>> Why do you want this?
>
> Well the
> http://encosia.com/2008/12/10/3-reasons-why-you-should-let-google-host-jquery-for-you/
> advantages  obviously are reduced traffic+CPU for the server, decreased
> latency, increased parallelism and better caching. How big an advantage it
> really is probably depends on how sophisticated Tapestry's bundling is.
>

That article doesn't take into account the things that Tapestry does for you:
- Combines prototype.js with other JS files to form a single JS file
(this is done on-the-fly)
- GZIp compression of the virtual asset
- Far future expires header for the virtual asset
- A couple of bug fixes in the Tapestry version

... and, perhaps in 5.3, on-the-fly minimization of the virtual asset.

The only real advantage to fetching from Google is that the browser
may fetch more of the JS files in parallel, since the fetching is
across multiple hosts.



> At first I wanted to do it quickly because it seemed to be a quick win - but
> the more I struggled with Tapestry to do this, the more it was about just
> getting it to do it :)
>
> There was a
> http://tapestry.1045711.n5.nabble.com/Tapestry-Central-Tapestry-5-1-and-IE-8-Customizing-Tapestry-td2436846.html#a2436848
> thread  about this topic almost a year ago - with no real solution. The last
> entry only says 'U could create a new "URIAssetFactory" to obtain assets
> from a
> external resource' - but I wouldn't even know where to start. I assumed this
> might interest other people too, hence the post here :)
>
>
>> You can configure the Tapestry Scriptaculous Path to get prototype library
>> in google.
>
> Isn't that an oxymoron? Setting the 'tapestry.scriptaculous' to fetch
> prototype - or am I not seeing something? :)
>
> I already had a look at the 'tapestry.scriptaculous' and
> 'tapestry.scriptaculous.path' configuration variable and it seems it only
> works for resources out of a JAR - when I played with it somewhere in the
> stacktrace it said LocalAsset or something similar...
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Fetch-Prototype-library-via-Google-DNS-tp3212754p3213334.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to