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.
According to documentation
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: