Good question, but if you only use it once, you don't need to worry about it. I would only use it once such that you aren't dependent on the implementation details as you never know how it will be in the future. I use it a bit like in the example of the link you specify. I check if the instance is initialized. If not, you initialize it in a runAsync, which is then only called once. - Ed
On Dec 6, 11:03 am, Watnuss <[email protected]> wrote: > Hi, > > I am wondering how the prefetching described > inhttp://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodeS... > works exactly. > > Will the code always be loaded when a runAsync call is performed or > just the 1st time the method is invoked? > > In my opinion it makes only sense if the code is just loaded once. > Otherwise I don't really see a benefit in using the code split/ > prefetching. > > If it is just loaded only once. How much is the overhead in calling > the runAsync method (when the code is already loaded)? > > Thanks for your help > Regards > > Watnuss -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
