This content has been marked as final.
Show 2 replies
-
1. Re: How to stop calling all css and js of richfaces compoenent
apanag Mar 31, 2010 5:22 AM (in response to aboocs01)Hi,
the solution to your request is this document: maven resource dependency plugin
It explains how to package into a single file the Richfaces JavaScript and CSS code from all the pages in your project. PLUS you can include in those files( custom-dependencies.js and custom-dependencies.xcss) your own javascript and css files.
I use it in a production environment and I have no performance problem in loading the JS and CSS files for all pages in the begining. Those files are not bigger than a single image and you get them with just a single request.
Cheers,
Andreas
-
2. Re: How to stop calling all css and js of richfaces compoenent
ilya_shaikovsky Mar 31, 2010 5:25 AM (in response to aboocs01)you could also use DEFAULT. but loading resources at once with caching seems more preferable. And yes, you could create your specific pack with plugin mentioned above.