GWT、MVP、GIN、代码分割?

发布于 2024-11-15 22:09:02 字数 161 浏览 9 评论 0原文

如何最大限度地减少 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

∞梦里开花 2024-11-22 22:09:02

请关注 GWT 邮件列表上的此主题。使用 AsyncProvider 由以下增强功能提供。

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

青春如此纠结 2024-11-22 22:09:02

我认为最好的想法是使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文