Category Archives: internet finds

console.log Causing problems in Internet Explorer

Wow its been a long time since I have posted.

Today at Avella I found out that console.log() in my javascript was causing major problems on our site in IE. I use console.log() to debug javascript in chrome and firefox.

Upon commenting out the console.log()’s, the internet explorer display bug vanished. Here is the confusing part :

If you open the developer tools in IE the problem disappears, also if the cache is cleared the problem disappeared. However if you close and re-open the problem is present again. Overall very annoying and hard to track down.

As a rule remove or comment out all console logs before pushing to production.