Skip to content
This repository

Potential gotcha with Modernizr #112

Closed
mgravel opened this Issue · 3 comments

4 participants

Michael Gravel Kate Gengler tmikaeld Jeff Lembeck
Michael Gravel

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.

Kate Gengler

Just had this problem. Thanks!

tmikaeld

I also had this problem, thanks!

Jeff Lembeck
Collaborator

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.