i'm using google charts google.load("visualization", "1", {packages:["corechart"]});
but the loading time is very slow upon checking the network usage i found that format+en,default,corechart.I.js is taking approx 6 seconds to load. any work around to reduce this time and why isn't this file being cached and every time it is fetched again from the google.
Unfortunately, due to google's terms of service you aren't able to cache/store the library legally.
Your users' computers must have access to https://www.google.com/jsapi in order to use the interactive features of Google Charts. This is because the visualization libraries that your page requires are loaded dynamically before you use them. The code for loading the appropriate library is part of the included jsapi script, and is called when you invoke the google.load() method. Our terms of service do not allow you to download the google.load or google.visualization code to use offline.
Link
I would suggest trying the following:
If you are loading other assets over CDN and aren't seeing similar problems then it may be something else. If that's the case I would suggest posting some code so we can see how you are calling the api in your app.
Best of luck.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With