We are using JBoss Errai framework on top of GWT to build web applications. The problem we are having is that the compiled version of the app is about 10 Megabytes in size already when compiled with optimizations.
Is there a way for an GWT/Errai app to split or somehow show up the initial pages even before the while cache.js file is loaded?
You can use Code Splitting mechanism.
For example:
You will find detailed information in documentation: http://www.gwtproject.org/doc/latest/DevGuideCodeSplitting.html