java - IceFaces puts it's CSS and JavaScript resources on every page, whether or not they use Ice components. Is there a way to block this? -
it appears merely having icefaces on classpath can severely affect page load times of jsf application.
several things happen, if no ice: components used on page
- ace-jquery.js 312kb
- ace-datatable.js.xhtml 182kb
- theme.css 22kb
- icepush-js 84kb
- compat.js 16kb
- icefaces-compat-js 289kb
- total: .88mb
furthermore request polled server every 15 seconds icepush listener.
there appears no way turn these off in icefaces, other removing jars app. we're trying migrate primefaces, app large, can migrate few pages @ time every release.
the ideal answer if knows way turn things off. next best answer way implement wrapper around resource handler somehow.
since no 1 found better answer, i'll post answer know of, in hopes else may find information useful.
what definitively works removing following jars classpath:
- icefaces-compat
- icepush
- icefaces-ace
i recommend staying away icefaces. instead, use primefaces omnifaces resource combiner. can compact pages , lightning fast page load times.
Comments
Post a Comment