Re: [5.3] why is a stack being included when not referenced?

2014-11-19 Thread Thiago H de Paula Figueiredo
On Wed, 19 Nov 2014 18:21:52 -0200, Paul Stanton wrote: True, visiting PageA and PageB if they both had their own stacks would download shared snippets twice. The trade off between more bytes *IF* the user visits both PageA and PageB or a single resource if they just visit PageA. Exact

Re: [5.3] why is a stack being included when not referenced?

2014-11-19 Thread Paul Stanton
True, visiting PageA and PageB if they both had their own stacks would download shared snippets twice. The trade off between more bytes *IF* the user visits both PageA and PageB or a single resource if they just visit PageA. In my example, the 3 large pages have 3 distinct audiences. Only sele

Re: [5.3] why is a stack being included when not referenced?

2014-11-19 Thread Thiago H de Paula Figueiredo
On Wed, 19 Nov 2014 16:10:53 -0200, Paul Stanton wrote: Thiago, Tapestry is smart enough to not download JS twice. I'm not sure you understood my example. It may not download the same JS code twice in the same page, but, considering different pages in the same site, the user browser wo

Re: [5.3] why is a stack being included when not referenced?

2014-11-19 Thread Paul Stanton
Thiago, Tapestry is smart enough to not download JS twice. Your 2nd paragraph sounds more likely - someone took the approach that if a resource is in a stack, then that resource must require the whole stack. I think this logic is flawed, or at least could be optional, certainly documented!

Re: [5.3] why is a stack being included when not referenced?

2014-11-19 Thread Thiago H de Paula Figueiredo
On Wed, 19 Nov 2014 07:57:19 -0200, Geoff Callender wrote: I've never seen this but I probably don't have any stacks that include a resource that I also reference outside of the stack. If it's true then it sounds like a bug. I'm not sure it is. I guess the reasoning behind this is to not

Re: [5.3] why is a stack being included when not referenced?

2014-11-19 Thread Geoff Callender
I've never seen this but I probably don't have any stacks that include a resource that I also reference outside of the stack. If it's true then it sounds like a bug. On 19 Nov 2014, at 3:33 pm, Paul Stanton wrote: > Further digging finds that if StackA includes ResourceA and PageB or any of

Re: [5.3] why is a stack being included when not referenced?

2014-11-18 Thread Paul Stanton
Further digging finds that if StackA includes ResourceA and PageB or any of its components import ResourceA then StackA will be included. org.apache.tapestry5.internal.services.ajax.JavaScriptSupportImpl.importJavaScriptLibrary(String) line 240 I haven't played around with stacks to this degr

[5.3] why is a stack being included when not referenced?

2014-11-18 Thread Paul Stanton
Hi, I have PageA for which I have created StackA of all the the js it includes by the virtue of its self and its components (for production efficiency). I have PageB for which I have not created a stack, and it does not import StackA. However when I request PageB, StackA is being included