I've been out for a while, so it might be a stupid question. Do you serve the script via a servlet or is the file served directly?
I ask because last year I did some performance tests for a client and having a servlet write a string is very expensive, compared to serving a static file. 100ms vs.10ms in my test environment. For this reason, I enhanced my maven build to package all script files into one big, compressed one which was put into the webroot and served directly, when in production mode. When in dev mode, I served the separate, raw files. This (among other things) made the application very fast. (I used a yuicompressor maven plugin) I didn't use jsf, but a custom framework, but I think this should be doable in myfaces too. Or maybe it already does? My 2 cents... Regards, Jan-Kees Sent from my HTC. On 25 Jun 2010 22:39, "Leonardo Uribe" <lu4...@gmail.com> wrote: Hi Werner I think we should activate it with a web config param. Debug using the real scripts in firefox is really useful. The idea could be provide a jsf-uncompressed.js file with all scripts as default on dev mode, but have a config param like org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS by default false. regards, Leonardo 2010/6/25 Werner Punz <werner.p...@gmail.com> > > Hello > > I have been doing some performance tuning for the last day on our jsf.js scripts. So ...