0

I have that line of code:

var checkExist5 = setInterval(function() {
    if (lock == 5 && $("#id1").length && $("#id2").length) {            
        console.log("debug");
        clearInterval(checkExist5);           
        lock = -1;
    }
}, 100);

it works at Firefox but it breaks the page at Internet Explorer. It does not give any error at console but the page is not shown (ie 9). What may be the reason?

kamaci
  • 65,625
  • 65
  • 210
  • 342

1 Answers1

0

I found the reason. It was because of

console.log("debug");

It was not working at Internet Explorer 9. There is an explanation here: Does IE9 support console.log, and is it a real function?

Community
  • 1
  • 1
kamaci
  • 65,625
  • 65
  • 210
  • 342