Forum Discussion

Yossis's avatar
Yossis
Guide
13 years ago

Can't use IE9 edge mode with X-UA-Compatible statement because custom head content comes too late

We want to use IE9 features and be sure that IE9 compatibility settings will not disable them, so we added in "Page Head Content":

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

 

But in the resulting markup this line is added after some link statements.

It must come immediately after head or title or meta statements to have an effect:

 

http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx#SetMode

http://stackoverflow.com/questions/6156639/x-ua-compatible-is-set-to-ie-edge-but-it-still-doesnt-stop-compatibility-mode/9624500#9624500

 

Is there a way to insert the meta statement earlier, or to have the server add it as a custom response header?

 

Thanks

No RepliesBe the first to reply