I'm loading the Google Maps API using jquery $.getScript like so
$.getScript("https://maps.googleapis.com/maps/api/js?async=2&callback=GMapsInit");
You can see that the URL has the callback function GMapsInit
. Does the GMapsInit
function get called after the script is loaded and executed, or simply after its loaded and not necessarily executed?