3 Replies Latest reply on Mar 18, 2009 6:22 PM by nbelaevski

    javascript code

    jazwiniak

      Hi, does exist any method to generate javascipt and css code generated by richfaces controls in html page? I answer about this because in my page there is 26 sections with code:

      or

      this causes that browser must make 26 connections to my serwer and if the internet connection is not fast the page is loading very slowly. If all code would be in html page ant this page will be gzipped then I think this page will be much faster loaded into browser.

        • 1. Re: javascript code
          jazwiniak

           

          "jazwiniak" wrote:
          Hi, does exist any method to generate javascipt and css code generated by richfaces controls in html page? I answer about this because in my page there is 26 sections with code:
          <link class="component" href="bla.css" rel="stylesheet" type="text/css" />
          or <script src="bla.js" type="text/javascript">


          this causes that browser must make 26 connections to my serwer and if the internet connection is not fast the page is loading very slowly. If all code would be in html page ant this page will be gzipped then I think this page will be much faster loaded into browser.


          • 2. Re: javascript code
            jazwiniak

             

            "jazwiniak" wrote:
            "jazwiniak" wrote:
            Hi, does exist any method to generate javascipt and css code generated by richfaces controls in html page? I answer about this because in my page there is 26 sections with code:
            <link class="component" href="bla.css" rel="stylesheet" type="text/css" />
            or <script src="bla.js" type="text/javascript">


            this causes that browser must make 26 connections to my serwer and if the internet connection is not fast the page is loading very slowly. If all code would be in html page ant this page will be gzipped then I think this page will be much faster loaded into browser.


            • 3. Re: javascript code
              nbelaevski