Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this questionI'm rewriting the questions to expand to broader context.
I would like to optimize my JSF web application by minifying CSS and JS, optimizing AJAX requests and basically learning the rules of efficient JSF web apps.
开发者_JAVA百科Emphasis on JSF since much of the page is built by the JSF framework although there are client side Javascript files that need optimization as well..
If you're using richfaces:
<context-param> <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name> <param-value>true</param-value> </context-param> <context-param> <param-name>org.richfaces.LoadStyleStrategy</param-name> <param-value>all</param-value> </context-param> <context-param> <param-name>org.richfaces.LoadScriptStrategy</param-name> <param-value>all</param-value> </context-param>
More info on this blog
Optimizing the ajax call is a too much generic question, it depends much on the widget library you are using. Try to be specific, otherwise this question may be closed.
精彩评论