2 Replies Latest reply on Apr 27, 2009 12:33 AM by Pavel Savara

    Slow loading of richfaces javasript files

    Pavel Savara Newbie

      We are experiencing slow loading of these two javasript files. It's not happening very often but everage is about 2.1s maximum up to 42s and minimum about 0.5ms.
      Any ideas why this could be happening is there anything specific in richfaces which would explain it? The javascript files are send gziped. Might be just pure network issue but we don't have problem with any other files like pictures or other js or css files. Its just these two.

      JS files.
      a4j/g/3_3_0.GA/org/richfaces/ui.pack.js HTTP/1.1
      /3_3_0.GA/org/richfaces/ui.pack.js HTTP/1.1


        • 1. Re: Slow loading of richfaces javasript files
          Sergey Smirnov Master

          In most previous cases, the problem was with third party compressor when it set the size of the package wrong. So, browser waits-waits-waits the end file because of that wrong size.
          RichFaces compresses the js by default. So, try to turn the RichFaces's compression off, first. If does not work, look at that you have for compression.

          • 2. Re: Slow loading of richfaces javasript files
            Pavel Savara Newbie

            According to documentation

            "If you use ALL value of Scripts Load Strategy, the JavaScript files compression
            turns off!"

            An in our web.xml we have


            The compression should be off in this case then and it seems it is.
            Our application runs on jboss server 4.3 and is served through apache which handles gzip compression of the content and in apache logs we still see sometimes very slow requests for the two of js files from richfaces. I don't understand why it should be pure static js file so no neccesary work to be done and server is not busy at all.

            We have problems with these two: