currently javascript resources served by NXThemes (/nxthemes-lib/) can be:
- gzip-compressed
- stored in the browser's cache
- concatenated (to fetch several .js files within a single HTTP connection)
but even with that there is a delay when loading pages especially when the size of javascript resources is big. Indeed, smaller javascript files are loaded and interpreted much faster.
Dojo's ShrinkSafe for instance achieves quite good results
http://dojotoolkit.org/docs/shrinksafe
http://svn.nuxeo.org/trac/nuxeo/changeset/20791
http://svn.nuxeo.org/trac/nuxeo/changeset/20817
http://svn.nuxeo.org/trac/nuxeo/changeset/20822
...
NXThemes resources are now also cached on the server.
the problem is that there are still a lot of resources (.js, .css, ..) that are being served for every page being displayed (MyFaces, custom libs) Most of the rendering time is wasted there.