4 ms·
Ironically, though, the original Google Maps didn't actually use XMLHTTPRequest, at least not for the trackable maps— that was all just moving <img> tags around
by mikepurvis 11y ago
Ironically, though, the original Google Maps didn't actually use XMLHTTPRequest, at least not for the trackable maps— that was all just moving <img> tags around and changing the src attributes on them.
XHR may have been used to fetch search results, although it later switched to a JSONP interface with generated script tags so that the various APIs (geocoding, directions, etc) could be used by third party sites on other domains.
- frik 11y agoIronically, neither Google Maps nor Google Mail (GMail) used AJAX/XMLHTTPRequest in their first version. The first Google product that used AJAX came later, it was Google Instant Search (search box improvement). Google Maps and GMAIL used hidden iframes to load data in the background. Around 2004/5 only Internet Explorer 5+ and very recent Mozilla builds supported XMLHTTPRequest (without bugs). As far as I remember Maps and GMail switched to AJAX approach around 2006.
- da1 11y agoIndeed hidden iframes were the original way in which these effects were implemented.