users@woodstock.java.net

Re: JSF 2.0 question

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Wed, 04 Jun 2008 15:41:01 -0400

I don't believe this has anything to do with JSF 2.0 features. Woodstock
combines CSS, JavaScript, and images to avoid generating multiple
requests. At one time, requests were generated for separate component
resources, but performance suffered greatly. Although the requests were
small, the number of requests have far more impact on performance than
the size of the request. (This is particularly true for images)
Although, this is relative to how many components are used in the page.
If the browser's cache is enabled, these resources should only be loaded
once.

If you are interested in the performance improvements made to Woodstock
4.2, please see the thread below. This includes combined files, lazy
loading, gzip compression, etc.

  
https://woodstock.dev.java.net/servlets/ProjectForumMessageView?messageID=23417&forumID=2879

Also take a look at the Woodstock head tag for performance related
attributes. For example, webuiAll and webuiJsfx can be used to tweak the
overall download size, depending on what features you need.

  http://webdev2.sun.com/woodstock-tlddocs

Dan

Ryan de Laplante wrote:
> Will JSF 2.0 provide a standard way for component sets to include only
> the CSS and JavaScript imports required by components being used on
> the page instead of forcing the component's entire theme to be
> downloaded? If I only use dropdown lists, text boxes, buttons, etc.
> then I shouldn't have to download 500 KB of CSS and JavaScript on the
> first page.
> Thanks,
> Ryan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>