Tobias Bambullis
Tobias Bambullis

Reputation: 249

Load Google Chart API asynchronously

Is there a possibility to load Google Chart API asynchronously like Google Maps API? I've tried out two different things:

$.getJSON('http://www.google.com/jsapi');

and

$.getScript('http://www.google.com/jsapi');

both are not working. Any suggestions?

Upvotes: 0

Views: 1177

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039468

Due to same origin policy restrictions you cannot perform AJAX requests to distant domains which explains why getJSON doesn't work. As far as getScript is concerned there shouldn't be any problems.

Upvotes: 1

Related Questions