Search code examples
internet-explorerresponsive-designinternet-explorer-9

Website crashes in IE9 Only


My web page freezes/crashes immediately in IE9 only, which is before I can see any errors in the console.

Also, I did get the site to work by adding:

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

But, having modern IE browsers render as IE8 mode is less than ideal.

I even tried isolating the use of the meta tag with an IE9 conditional comment, but that doesn't work.

So, if anyone knows the issue, or even a band-aid to get only IE9 into IE8 mode would be greatly appreciated.

Also, I don't see any errors: https://validator.w3.org/nu/?doc=http%3A%2F%2Fwebdesign199.com%2Flanding.php


Solution

  • I was able to narrow it down to the following files (i.e., the JS files for <= IE8 versions found on almost every responsive site):

    • html5shiv.js
    • respond.min.js

    I switched to a CDN version of these files and it resolved the issue. So, I assume I had an older version w/ a bug that was fixed in a later release.

    Still not sure why IE9 would be affected. Also, I did test this on CrossBrowserTesting.com, so it wasn't just my PC.

    Thanks to everyone who replied.