BootsFaces loads many small CSS and JavaScript files. So it's a good idea to use http/2. If
that's not an option, we recommend using BootsFaces with OmniFaces. The
CombinedResourceHandler
combines all these small files into a larger file. This costs some performance on the server side,
but this pays off because of the reduced network overhead.
However, with the advent of http/2,
it's the other way round. With http/2 we recommend not to use the CombinedResourceHandler
Add these lines to your Maven pom.xml file:
CombinedResourceHandler
, add a <resource-handler>
to the faces-config.xml
file:
Caching can add a lot to your page's responsiveness. You have to add a few lines to the web.xml
file to activate and configure caching.
Download the PrimeFaces Bootsstrap theme, add it to your application's lib
folder and activate it in the web.xml
like so: