I have a website which triggers some JavaScript errors in IE9. When opening the debug-console with F12 and reloading the page, the problem disappears and everything runs just fine. This is clearly annoying and therefore it’s difficult to detect the error message in order to solve the problem.
It’s a page with a Google Map. Normally, there should be markers on the map. In IE9, there aren’t. When opening the console, everything is working.
Does anyone know how to debug this annoyance?
In IE, the
consoleobject is not available unless the console is open. That’s what’s causing the errors when it’s closed. Remove all references toconsolefrom your code and you should be fine.