How to optimize RichFaces UI component performance in web applications

I’m working with a web app that uses MyFaces 1.2.6 and RichFaces 3.3.1GA. After upgrading to this version, I noticed the UI components are running pretty slow.

The main issue seems to be that RichFaces doesn’t handle browser caching well. It keeps downloading JavaScript files on every request instead of using cached versions. This makes the app feel sluggish.

I’ve been reading about web performance optimization techniques, but the problem is I can’t modify the JavaScript and HTML that RichFaces generates automatically. The framework controls all that output.

Has anyone found good ways to speed up RichFaces components? I’m looking for practical tips to improve the frontend performance without having to rewrite the whole application.