I had the same problem and solved this:
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type='text/javascript'>
function LoadGoogle()
{
if(typeof google != 'undefined' && google && google.load)
{
}
else
{
setTimeout(LoadGoogle, 30);
}
}
LoadGoogle();
</script>
The idea is to repeat until Google is determined .
, , , Ajax .