On Fri, 13 Dec 2013 10:45:15 -0200, Regina Galieva <daosu...@ro.ru> wrote:

Hi all,

Hi!

I'm trying to understand the basic concepts of client-side optimization in Taperstry (without Require.js).

I want to reduce the number of requests to the server. Official documentation recommends to put js-files into stacks (JavaScriptStack) and combine them in one
file.

That works fine.

But what about js-files which aren't included in stacks?

Short answer: put these JS files in stacks. :)

The answer dependes on the Tapestry version. If 5.3.7 or below, you can create your own stack with the JavaScript files you want, something you already done, and @Import it instead of including individual files.

If you're already using 5.4, as far as I can remember, Howard did a recent commit that automatically causes the whole stack to be included when a single file which is part of it is imported.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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

Reply via email to