Please see if there's anything in http://code.google.com/apis/chart/interactive/docs/library_loading_enhancements.html that can help you.
On Sat, Jul 16, 2011 at 7:45 PM, Coelho Net <[email protected]> wrote: > I have two pages, the main.html and the maps.html. > > The main.html has a menu that when the user click a jquery function loads > the maps.html inside a div on main.html content area. > > I want to reduce the initial page load time calling all the google packages > only when the user clicks to open maps.html > > I have put all the google loading code directly in the maps.html but when > you try to open it from main.html nothing happens (opening map.html directly > works fine). > This problem occurs with other packages like table and geomap > > The only solution that I have found is loading maps.html inside a iframe on > main.html. > > Looks like if I try to load any google package programmatically it does not > work, it only works if you load it with the > initialization code outside a function. > > Is there any way to load google packages programmatically after the main > page has been loaded? > > I have annexed two sample pages to show the problem. > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-visualization-api/-/o_V1ecQaDq8J. > 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-visualization-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" 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-visualization-api?hl=en.
