Hi all, 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? If I use linking to js libraries in components (using @import), that scripts will create additional requests in <head>. It's ok if component uses only 1-2 different libraries and page contains only 1 or 2 of them. But if there a lot of components and different cases of using them in pages? For example: I have 5 components and each of them includes 1-3 different libraries. One page contains all of that components, another page needs only 2, etc. For common js-librariy I've created CommonJavaScriptStack and included it in layout. So, if we look at final page source (page with 5 components), we'll see that there: 1 file for core js, 1 for common js and 10-12 single js-files. Is it normal case? I wonder. Maybe Tapestry provides another concept of js-developing with components?