GWT延迟绑定仅用于加载catch中所需的类

时间:2010-10-22 07:50:29

标签: gwt binding deferred

我们有产品,谁的前端是在GWT。因为它包含许多类(大约150个菜单,你现在可以想象)

  When user access this first time, it takes time to load. (If bandwidth is low then this increases)

  next time on wards it remains in catch, we dont have to worry about bandwidth.

  Can i reduce this first time loading time by using GWT deferred binding ?

  (please dont mind my information of GWT if anything wrong, i am very new to it )

1 个答案:

答案 0 :(得分:3)

是的,初始加载时间通常可以减少很多。您可能希望查看Code Splitting

您必须先做出决定,最初需要哪些部件,以及以后(何时)加载哪些部件。然后绝对确定,您不会意外地使用初始代码片段中的后续部分 - 除了GWT.runAsync内部。