25 points · by ms123 · 13y ago · 19 comments
If you forget to remove then, IE8 will crash and burn...
It may also affect performance, although that is usually negligible...
if (typeof console == "undefined") { console = { log: function() {} }; };
That is not quite correct. IE8 (and IE9 I believe) support `console.log`, but only when the developer tools are open.
Needless to say, it is rather frustrating.