Game only loads in I.E. when Developer Tools are open

Discussion in 'HTML & Website Design' started by batman4444, Feb 19, 2012.

  1. #1
    So, I can not figure this one out.
    I noticed the other day that my game was not loading correctly in I.E (sounds will work but none of the graphics are rendered in the canvas tag). However if you open up the developer tools (F12) and refresh then the game load correctly.


    Any ideas? Seems kinda strange and I can not figure this one out.


    I already verified that it has nothing to do with the "No relay set (used as window.postMessage targetOrigin), cannot send cross-domain message " error that pops up, this is due to the adsense ads, (I disabled the ads, no error, but still problems loading the game)



    The game is http://asteroidsinc.com/
     
    Solved! View solution.
    batman4444, Feb 19, 2012 IP
  2. #2
    You have left calls to console.log function inside your JS code. This function is only available when a browser has developer tool installed and running.

    You should always get rid of the console.log calls. For debugging it's best to use developer tool debugger anyway.
     
    nemanja.todic, Feb 19, 2012 IP
    batman4444 likes this.
  3. batman4444

    batman4444 Active Member

    Messages:
    211
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    By golly that was it, Thanks for the help - wouldn't have thought of that on my own
     
    batman4444, Feb 25, 2012 IP