Search code examples
javascriptinternet-explorer-9bxslider

Website with javascript doesn't work in IE9 but in IE9's compatibility mode - how to force compatibility view?


I know that there already is a question like this: Force IE9 into browser compatibility view

But since adding:

<meta http-equiv="X-UA-Compatible" content="IE=9">

to the the head section and reloading the page with ctrl+F5 didn't help there must be another way.

On my website is also a bxslider and according to this: bxslider not working in IE9 I replaced the elements (which had empty href attribute) with tags - still not effect. The images of the slider are displayed in full size one below the other. After activating compatibility mode the site works perfect.

I don't wanna rebuild my application from the scratch so what could I do to force the compatibility-view? Or is there at least a good free debugging tool for that? I downloaded the firefox addon IE Tab which has a debugbar but to use it you have to buy a premium version. I just don't know what is causing the error...


Solution

  • I found what was causing the error: Why does JavaScript only work after opening developer tools in IE once?

    So frustrating and so simple. It was caused by the console.logs in the script. Without them it works like a charm.