Google Maps Pseudo JavaScript
Tuesday 1st July, 2008 18:18 Comments: 1
if (IE8) { break; // hideously } else { if (IE7) { if (reallyIE8) { break; // haha, we still got you! } else { doCSSHacks(); // must cater for the majority :( } } }I'm sure they must have some code like that somewhere in Google Maps, as even when I emulate IE7 it's still broken. Why, Google, why? I know it's always been broken (and probably always will... or perhaps until IE8 beta 2 arrives), but it really bugged me earlier today. Before anyone says anything, I know that "break;" is used to get out of a loop, and doesn't actually make Google Maps break. It probably would have been better to put something like "break();".
Sadie - Wednesday 2nd July, 2008 13:54
Having tried to write Javascript of even vaguely moderate complexity, and with the luxury of telling our customers not to use something stupid like IE6, I don't envy Google the task of making a slick application like Google Maps work on every different browser. It may seem that Javascript is taking over the world, but it's no more suited to the task of writing big applications than it ever was.
What they could do instead of trying to deliver the full effect for everybody is detect the broken cases and deliver them a less slick, barely functional version. Like the \"low bandwidth\" version of mail.
I imagine that when SVG support becomes widespread and reliable (in the era of IE10 or IE11 at this rate), there'll be a version of maps that relies far less on ugly hacks.
What they could do instead of trying to deliver the full effect for everybody is detect the broken cases and deliver them a less slick, barely functional version. Like the \"low bandwidth\" version of mail.
I imagine that when SVG support becomes widespread and reliable (in the era of IE10 or IE11 at this rate), there'll be a version of maps that relies far less on ugly hacks.