2010-10-22 37 views
0

我們有產品,誰的前端位於GWT中。因爲它包含許多類(約150個菜單,你現在可以想像)GWT延遲綁定僅用於在捕獲中需要的類

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) 

回答

3

是,初始加載時間通常可以通過大量減少。你可能想看看Code Splitting

你必須做出決定,你需要的部分開始,哪些部分可以在以後(何時)被加載。然後絕對確定,您不會意外地使用最初代碼片段中的那些後續部分 - 從GWT.runAsync內部除外。