-
1. Re: Slow loading of richfaces javasript files
sergeysmirnov Apr 24, 2009 4:42 PM (in response to palino)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
palino Apr 27, 2009 12:33 AM (in response to palino)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
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
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:
a4j/g/3_3_0.GA/org/ajax4jsf/framework.pack.js
a4j/g/3_3_0.GA/org/richfaces/ui.pack.js
Pavel