Hello Espen,
googlemaps.js is the last script called in portal_javascripts. If I understand your suggestion I could move the maps api script into portal_javascripts and place it before googlemaps.js and that might solve the problem?
If I were to do that, I would place the script in portal_skins/custom and call whatever I name the file from portal_javascripts before googlemaps.js?
Norman