Google Maps causes Safari 1.3.2 to crash

Discovered yesterday that an update in the Google Maps API causes older Safari systems (1.3.2, the most current for OS X 10.3) to crash. Hard.

Luckily, after wading through plenty of ranting about why old browsers should be kicked to the curb (not a particularly useful solution if you’re trying to make your page interactive AND compatible for your audience), I found an easy tweak that in the short term will stop a hard crash. Without resorting to a browser detect, or rendering a static version of the map.

There’s a post in the Google Map API group that suggests changing the header code API version from
<script src="http://maps.google.com/maps?file=api&v=2&key=your_key_here" type="text/javascript"></script>

to
<script src="http://maps.google.com/maps?file=api&v=2.s&key=your_key_here" type="text/javascript"></script>

This tells Google Maps to load up the latest stable (.s) version of the API, currently 2.73 instead of the latest 2.101

API information and update history can be found here.

Comments are closed.