On Sun, Dec 6, 2009 at 19:06, balachandra maddina <[email protected]> wrote: > You mean when make the same async call through the runAsync then the > downloaded script will be used? because since the runAsync call is linked to > a button click every time the button is clicked the runAsync call will be > triggered isnt it? > Regards, > bala. > > On Sun, Dec 6, 2009 at 3:00 PM, Qian Qiao <[email protected]> wrote: >> >> On Sun, Dec 6, 2009 at 17:28, balachandra maddina <[email protected]> >> wrote: >> > Hi There, >> > If im using the runAsync to load a particular script based on a click >> > then >> > every time i click the script is getting downloaded freshly and getting >> > loaded. is there a way to manage this behavior like to check if >> > that particular object is loaded or not? >> > i thought of using a hashmap to keep the objects that are loaded through >> > the runAsync call, but that doesnt seems a good idea as the map will be >> > holding all the script that is loaded through all runAsync calls and get >> > heavy. is there a better way to manage the script loaded through >> > the runAsync call? >> > Your help is appreciated. >> > Thank you, >> > bala. >> > >> >> The downloaded script is cached. So it requires nothing special in your >> code. >> >> HTH. >> >> -- Joe >>
That is correct, the script is downloaded the first time, all subsequent invocation will not make any HTTP round trips. -- Joe -- Two things that are infinite, the universe and my stupidity, and I'm not sure about the universe. -- 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.
