I'm currently developing a Seam/RichFaces commerce web environment. Our pages have become a bit heavy and we're looking to reduce the load user's are hit with when navigating throughout the site. I'm using the DEFAULT option for both LoadStyleStrategy and LoadScriptStrategy so the files are imported and cached on-demand.
What I'm looking to do (if at all possible) is remove unnecessary packages from being included in this load. Is there a way to bundle the Strategy and Script packages that my application uses? Or a way to designate certain packages to be skipped over? The only plausible option I've bene able to come up with so far is to set both Style and Script's Strategy to "NONE" and include each package manually on each page, which, given the size of our project, is not an option.
Any suggestions? Is there some RichFaces functionality that I'm forgetting about? Thank you in advance.
I should have mentioned that I'm using RichFaces 3.3.2. I don't think the LoadStyleStrategy/LoadScriptStrategy are available in 4 anymore.
Thanks for the reply Nick.
I've beeng playing with the Maven Resource and I noticed that in the comments section someone had a blog post detailing how to use the plugin while still using an ant build.xml. (http://blog.dreamix.eu/2010/12/maven-resource-dependency-plugin-wihout.html). My POM and build.xml seem right to me, although I had to make some changes to match my system configurations (I'm using RichFaces 3.3.2.SR1, my build.xml is at my project's root, etc.). For some reason the dependency files aren't being generated. I'll continue to tinker with the configurations. Has anyone had similar issues?