internet explorer - Why does JavaScript only work after opening developer tools in IE once? -
ie9 bug - javascript works after opening developer tools once.
our site offers free pdf downloads users, , has simple "enter password download" function. however, doesn't work @ in internet explorer.
you can see in example.
the download pass "makeuseof". in other browser, works fine. in ie, both buttons nothing.
the curious thing i've found if open , close developer toolbar f12, starts work.
we've tried compatibility mode , such, nothing makes difference.
how make work in internet explorer?
it sounds might have debugging code in javascript.
the experience you're describing typical of code contain console.log()
or of other console
functionality.
the console
object activated when dev toolbar opened. prior that, calling console object result in being reported undefined
. after toolbar has been opened, console exist (even if toolbar subsequently closed), console calls work.
there few solutions this:
the obvious 1 go through code removing references console
. shouldn't leaving stuff in production code anyway.
if want keep console references, wrap them in if()
statement, or other conditional checks whether console object exists before trying call it.
Comments
Post a Comment