On Oct 16, 7:59 am, Matt Ball <[email protected]> wrote: > Try a completely different approach: use google's Ajax loader to load > the Maps API code asynchronously. The general skeleton would be this: > > <head> > <script type="text/javascript" src="http://www.google.com/jsapi? > key=your_key"></script> > <script type="text/javascript"> > $(document).ready({ > google.load('jquery', "1.3.2", {uncompressed: false}); > google.load('maps', "2.x", {other_params:"sensor=false"}); > > google.setOnLoadCallback(function() > { > // do everything else here > });
Loading jquery inside of $(document).ready doesn't make much sense, but otherwise it seems to work perfectly. Thanks, Matt! /George --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en -~----------~----~----~----~------~----~------~--~---
