Hi,
What is the recommended way to load the visualization libraries?
I noticed in the documentations there are two methods:
OPTION 1
http://code.google.com/apis/chart/interactive/docs/quick_start.html
<!--Load the AJAX API-->
<script type="text/javascript" src="
https://www.google.com/
jsapi"></script>
<script type="text/javascript">
// Load the Visualization API and the piechart package.
google.load('visualization', '1.0', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is
loaded.
google.setOnLoadCallback(drawChart);
OPTION 2
<!-- One script tag loads all the required libraries! Do not
specify any chart types in the autoload statement. -->
<script type="text/javascript"
src='
https://www.google.com/jsapi?autoload={"modules":
[{"name":"visualization","version":"1"}]}'>
</script>
<script type="text/javascript">
google.setOnLoadCallback(drawVisualization);
Which one should we use or which one is better?
thanks