IE8 won't load JavaScript file in "Compatibility View."

Posted by Don Jones on Stack Overflow See other posts from Stack Overflow or by Don Jones
Published on 2010-01-30T17:32:21Z Indexed on 2010/04/16 4:03 UTC
Read the original article Hit count: 350

Filed under:
|
|

Here's my JS insert:

<script type="text/javascript" src="include/profile.js"></script>

In IE8 with "Compatibility View," the file never loads. The first line in the file is a simple alert() call, so that I know it loaded. Change the browser to Standards View, and it loads fine.

Also, if I add:

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

It forces to Standards View and it loads fine.

Any idea why this would be the case? I've not been able to test against IE7, but I know the JS file also does not load in IE6.

Right now the tag is in the section of the file.

© Stack Overflow or respective owner

Related posts about ie8

Related posts about compatibility