3 Replies Latest reply on Apr 3, 2009 6:25 AM by rainy14f

    Improving the page loading speed

      Hi,

      I'm trying to migrant an existing application from struts+JSP to JSF+RichFaces+Facelets. It's almost done now and I found the page loads considerably slower than the previous JSP version. Though it's not unacceptable running in LAN, I'm still wondering if there is anything i can do to improve the speed?

      I have done profiling on the server side and found out that rendering the UI components by the class AjaxViewHandler takes 99% of the time. So I'm thinking that whenever possible if I use the plain HTML elements like instead of the JSF components like <h:panelGroup> or <a4j:outputPanel>, would that be helpful to reduce the time spent on components rendering?

      Many Thanks.

        • 1. Re: Improving the page loading speed

          Also thinking of replacing <h:outputText ... /> with plain #{} when possible. Would that help anything?

          • 2. Re: Improving the page loading speed
            nbelaevski

             

            "rainy14f" wrote:
            Hi,
            I have done profiling on the server side and found out that rendering the UI components by the class AjaxViewHandler takes 99% of the time

            Hello,

            Sure, components rendering on initial request happens as nested calls from AjaxViewHandler, that's why it takes a lot of time. Are you using the latest JSF version?

            • 3. Re: Improving the page loading speed

               

              "nbelaevski" wrote:


              Hello,

              Sure, components rendering on initial request happens as nested calls from AjaxViewHandler, that's why it takes a lot of time. Are you using the latest JSF version?


              Yes, its SUN's ref impl 12. To be precise it's 1.2_10-b01-FCS. It slightly worries me because we've seen the JSP version of the app responds much faster. Any idea?