2 Replies Latest reply on Dec 18, 2009 11:09 AM by Richie R

    how to set jquery and prototype in production versions.

    Richie R Newbie

      I have a two problems with Rich Faces work speed.

      1) Can not set the production version to JavaScript libraries used in Rich Faces. Current I have 120 and 140 kB of jquery and prototype.

      2) Browser does not save this js sources in the cache.

        • 1. Re: how to set jquery and prototype in production versions.
          Ilya Shaikovsky Master

          on the 1) question - do you mean you want them to be compressed?

          use that params and your sripts and styles will be combined into single packs and comressed:

               <context-param>

                    <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>

                    <param-value>true</param-value>

               </context-param>

               <context-param>

                    <param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>

                    <param-value>true</param-value>

               </context-param>

          <context-param>

                    <param-name>org.richfaces.LoadStyleStrategy</param-name>

                    <param-value>ALL</param-value>

               </context-param>

               <context-param>

                    <param-name>org.richfaces.LoadScriptStrategy</param-name>

                    <param-value>ALL</param-value>

               </context-param>

          2) check rf-demo loading in Firebug - resources are cached.. So ned more info if will be reproducable.