开发者

How To Optimize JSF applications [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

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 question

I'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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜