Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-UA-Compatible header ignored in IE when using respond.js #159

Closed
kanetik opened this issue Oct 14, 2012 · 3 comments
Closed

X-UA-Compatible header ignored in IE when using respond.js #159

kanetik opened this issue Oct 14, 2012 · 3 comments

Comments

@kanetik
Copy link

kanetik commented Oct 14, 2012

I have a meta tag in my HTML, . Apparently, if that tag doesn't come early enough in the HTML, you get errors - and when I enable respond.js, I get this in my console: HTML1115: X-UA-Compatible META tag ('IE=edge') ignored because document mode is already finalized.

It seems that respond.js is injecting some styles directly into the DOM, and it's the first thing in the head, so it causes this issue. I cannot quite figure out where that's being done in the JS, so I can't fix it myself, or I would.

Thanks!

@An6r
Copy link

An6r commented Jan 8, 2013

It seems that respond.js is injecting some styles directly into the DOM
You're quite right! Try to move your META tag to the beginning of the head part - it should help )

@kanetik
Copy link
Author

kanetik commented Jan 8, 2013

Right, that would be the obvious fix, so that is, in fact, the first thing I did. However, respond.js injects that script block into the head in such a way that it becomes the first thing, no matter what. That I what I would like to have fixed.

@jefflembeck
Copy link
Collaborator

You're quite right! Try to move your META tag to the beginning of the head part - it should help

This is a suitable fix. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants