Skip to content

Potential gotcha with Modernizr #112

mgravel opened this Issue Mar 10, 2012 · 3 comments

4 participants

mgravel commented Mar 10, 2012

This isn't an issue, I just wanted to report a solution to a potential "gotcha" when using Respond.js with Modernizr in IE8.

I had my scripts and stylesheets in the following order:

  • Stylesheet import
  • Modernizr
  • Respond.js

This caused erratic behavior in IE8. I hesitate to say that it pushed IE8 into "quirks mode" because I don't know if that's strictly true. Clicking "Compatibility view" did seem to solve the problem. The following source order corrected everything:

  • Modernizr
  • Stylesheet import
  • Respond.js

In that order, all seems to work well. Hope this helps someone else.


Just had this problem. Thanks!


I also had this problem, thanks!


Thanks for the tip! Including Modernizr at the top is definitely the recommended approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.