2 Replies Latest reply on Mar 31, 2010 5:25 AM by Ilya Shaikovsky

    How to stop calling all css and js of richfaces compoenent

    aboo salimon Newbie

      Hi All,

       

      when i open my application all css files and js is called for all richfaces components example: rich:calendar, tabpabel, modalpanel,spinner ...etc

       

      but i dont want to call all the css and js intailly because it is taking long time to load the page which end in performance issue , so i need call one specified css file and js which i need to call in first page and remaining css and js will be called in second time.

       

      i have tried with

       

      <param-name>org.richfaces.LoadStyleStrategy</param-name>
                      <param-value>NONE</param-value>
              </context-param>

       

              <context-param>
                      <param-name>org.richfaces.LoadScriptStrategy</param-name>
                      <param-value>NONE</param-value>
              </context-param>

       

       

      but i cant use this and it is strange it will not load any css or javescript.

       

       

       

      so tell me some suggestions????????????