Thanks for the thoughtful response VizGuy!
One followup that a friend of mine raised: Say I have three dashboard
modules that all show a pie chart. Each of them makes a google.load
call in quick succession, such that no one call has returned before
the others go. Do we then d/l 3x the data, one for each load call?
I'm still somewhat unclear on the nature of multithreading in
javascript (I hear there isn't any) and asynchronous functions with
callbacks...
Thanks again!
--Andy
On Jul 28, 11:08 am, "Google VizGuy" <
viz...@google.com> wrote:
> Hi AndyYour first option is to load all packages once when the page is
> loading. Then you set the onLoadCallback to a function, which gets called
> after all packages are loaded. All paclages are loaded using one http call.
> This makes the rest f the page simpler, as you know that everything is
> loaded.
>
> Another option is to load packages one by one. You do this by calling
> google.load with a callback parameter (seehttp://
code.google.com/apis/ajax/documentation, chapter on dynamic loading).