google maps js on map load

JavaScript
google.maps.event.addListenerOnce(map, 'idle', function(){
    // do something only the first time the map is loaded
});
Source

Also in JavaScript: