GWT、MVP、GIN、代码分割?
如何最大限度地减少 GWT 应用程序用户浏览器最初下载的代码量? 好吧,只需将潜在的大操作包装在 GWT.runAsync() 调用中即可。 然而,由于我们的应用程序使用 GWT 最佳实践(依赖注入、MVP 模式),因此它并不像 GWT 文档描述的那么简单。 您能否告诉我如何将代码分割与 GIN 结合使用?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请关注 GWT 邮件列表上的此主题。使用 AsyncProvider 由以下增强功能提供。
Follow this thread on the GWT mailing list. Use AsyncProvider as provided by the following enhancement.
我认为最好的想法是使用 MVP 框架。我使用 mvp4g,它支持开箱即用的代码拆分。它还将为您生成样板代码,因此使用它开发高级 GWT 应用程序非常简单且快速。另一个是 gwt-platform,Google 邀请其创建者加入 Google IO,看起来该框架受到 GWT 创建者的青睐。
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.