I've seen MANY people ask about having multiple Google Charts on one page, and the answer is always "your html/js is wrong", or "just add all of them in one function that's called in the setOnLoadCallback".
My issue is a bit different. What if I want buttons, client side, that, when clicked, generate a Google Chart. Do I need to call "google.load(....)" every time, and then setOnLoadCallback as well, or is there some way to load it ONCE, and then from that point forward just use the already loaded objects?
The only thing I can think of is to store some flag that's updated on the very first google.setOnLoadCallback, and if flag is set, don't load it again, but if someone clicks a few buttons quickly they will all already have issued "load" function calls.
Basically I want one generic function that I can call (I will create it myself) but I don't want the function calling google.load everytime, it just feels really inefficient.
How do I go about this efficiently?