开发者

Reducing RichFaces Script and Style Loads

I'm currently developing an e-commerce application using RichFaces 3.3.2. The users have mentioned that the experience has been lagging lately and we're looking for ways to speed up page load times.

We noticed that RichFaces is loading some unnecessary scripts onto our pages. We're using the LoadScriptStrategy and LoadStyleStrategy of "DEFAULT" so that they're loaded on-demand, but it still loads a lot of junk that we don't use.

I'm wondering if RichFaces has the ability to sort through what is and isn't used in my web page? Either that or some way of seeing what resources each of my pages is using; that way I can set my Strategies to "NONE" and manually import what I need.

Basically I'm trying to avoid combing through each page and analyzing exactly what is used. Any advice or previous experience?

Thanks in advance.

开发者_如何学Go

-Nick


DEFAULT - should load (and unload) only resources which are needed. You can try NONE but then you will need to figure out yourself what to load.

You say the application is lagging, are you sure it's because of scripts/styles loaded and not something else?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜