开发者

How To Optimize JSF applications [closed]

开发者 https://www.devze.com 2023-04-10 21:23 出处:网络
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 po
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

精彩评论

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