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

    how to set jquery and prototype in production versions.

      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

          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.

          • 2. Re: how to set jquery and prototype in production versions.
            thanks