Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT, MVP, GIN, code splitting?

How to minimize the amount of code downloaded initially by GWT app user's browser? Well, just wrap potentially big operations in a GWT.runAsync() call. However, since our application is using GWT best practices (dependency injection, MVP pattern), it’s not as straightforward as GWT doc describes. Could you please give me an idea on how to use code splitting in conjunction with GIN?

like image 842
user405458 Avatar asked Oct 10 '22 18:10

user405458


2 Answers

Follow this thread on the GWT mailing list. Use AsyncProvider as provided by the following enhancement.

like image 96
Valdis R Avatar answered Jan 04 '23 23:01

Valdis R


The best idea, I think, is to use MVP framework. I worked with mvp4g, it supports code splitting out of box. It will also generate boilerplate code for you, so it's pretty simple and fast to develop advanced GWT application with it. The other is gwt-platform, Google invited its creator to Google IO and it looks that this framework is preffered by creators of GWT.

like image 44
beastieboy Avatar answered Jan 05 '23 01:01

beastieboy