I think if you have so many kb CSS files in your system, the best solution is not make one tile over the complete header. In stead you could create header tiles for subsets what re-use the same CSS files. You could name them something like this
header-home.jsp (including home.css text-block.css etc etc) header-shop.jsp (including shop.css, item.css, etc, etc) and more.... this approach will result in fewer CSS downloads at one page load. I hope this is more clear... I don't know if this is a smart thing to do in your situation. downloading 100Kb CSS is not a performance bottle neck. In most cases the CSS files will be zipped and transfered to the client. Transfering files in .zip must be turned on your webserver. Again if you have several Mb's of CSS files it is maybee interesting to do something about it, otherwise just stick with your original approuch. On 11/29/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
Mark, I don't understand your solution, It's the first time I try to implement Tiles, Could u tell me what *you* would do ? U mean making more than one "base layout" ? And in my jsp pages insert different base layouts ? 2006/11/29, Mark Bakker <[EMAIL PROTECTED]>: > > Ohh like that... guess I miss read something.... :,) if this is the > case I would not use the header tile how you defined it... is it then > not more sensible to create several header tiles, I like JSP that are > still more or less readable as HTML without the "magic things" in > config files. > > ofcourse you can also go for Chris route. > > > On 11/29/06, Thomas Thomas <[EMAIL PROTECTED]> wrote: > > They will be cached if the user 'surf' on the webpage, > > if I have thousand pages, and he may see two pages, > > i am going to store 1000's css files in his cache. > > > > 2006/11/29, Mark Bakker <[EMAIL PROTECTED]>: > > > > > > Extra remark all CSS and JS files will be cached by the browser, so > > > including CSS in all webpages does not decrease the performance. > > > > > > On 11/29/06, Thomas Thomas <[EMAIL PROTECTED]> wrote: > > > > Thank u Chris, > > > > I will try that ! > > > > Do u have a solution for number 1) ? > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]