I have a ClientBundle, which defines a bunch of TextResource
and ImageResource
elements.
For each page on my site, I plan to set up a code split point, which will run the views / presenters for that given page only.
My question is, say I have an ImageResource called logo(), and a text resource called fooJs(). I only access MyClientBundle.INSTANCE.logo()
and MyClientBundle.INSTANCE.fooJs()from a
Gwt.runAsync` block.
Other pages will access MyClientBundle.INSTANCE
to load other images / textResources, which are specific to those pages (within GWT.runAsync blocks of their own). But logo()
and fooJs
will only be referred to within one code split.
My question is, will the logo
image and fooJs
textResource only be bundled within the code split file, or will they be added to the startup js, or to the left over fragments?
Essentially what I'm trying to do is split the images / views / presenters for every page, to reduce initial download size of the script.