Code referenced outside of the runAsync callback will be brought in on startup. If you only refer to that static function in the runAsync part (or in code brought in as a result) then it'll be downloaded in the background as expected.
You can use the SOYC tool to figure out exactly what's going on. On Thu, Apr 9, 2009 at 6:34 PM, Ghostcoder <[email protected]> wrote: > > I have a doubt > > GWT.runAsync(new RunAsyncCallback() { > public void onFailure(Throwable err) { > } > > public void onSuccess() { > > some static method (method is a huge chunk of > code) > > } > }); > > Will the static method javascript be downloaded when the application > starts or when the code reaches the point ? > > How does static variables and methods behave in runasync feature ? > > Thank you > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
