Tuesday, April 11, 2017

Force a site to NOT render in compatibility view

In IE, compatibility view is great.  It forces the newer versions of IE to render a site like it did back when IE 7 was around.  However, sometimes you have an older site that needs compatibility running on the same domain as a newer site that doesn't need compatibility.  You can force the newer site to NOT run in compatibility view by inserting this in the head tag of your page:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
UPDATE: Make sure this line is the first line under the head tag.