On Sun, Dec 6, 2009 at 19:06, balachandra maddina <chandu2...@gmail.com> 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 <qian.q...@gmail.com> wrote: >> >> On Sun, Dec 6, 2009 at 17:28, balachandra maddina <chandu2...@gmail.com> >> 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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.