-
Notifications
You must be signed in to change notification settings - Fork 40
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
How to support browsers that don't support Media Queries (probably just IE8) #801
Comments
I don't want to look like some sort of "IE8-hater", but I'd go with the last option. IMHO the first option is not worth the effort. A JS Polyfill could also be fine, because the performance penalty only applies to IE8 users. I used respond.js some time ago and it works pretty well with css3 media queries & IE8. The only problem with Respond is that it only covers that part, so most of the times you also need html5 polyfills (html5shiv.js) to make IE8 understand html5 tags, a whatever.js... |
👍 @pablo-romero I think a JS Polyfill is totally fine |
We already include html5.js for IE8, so we're covered for making it recognize HTML5 elements at least. If respond.js does an adequate job, that seems like the least work. We're committed to IE8 support for the 1.x release. |
The current large scale site I'm working on for a client that QA's the crap out of everything is using respond.js for this exact thing and they don't have any complaints. I'm for it! |
yes :) |
We're doing mobile first CSS which would look like:
Problem here is IE8 wouldn't see any of the styles in the
@media
query, and those users are likely to have a viewport above 600px.CSS class to add desktop styles for IE8
Adds a lot of extra work, but light in performance
The solution I generally use is getting a class on the html tag for IE8, or do a media query test with modernizr. This requires little to no effort on the part of the IE8 user (who's computer is likely terrible). This means we'd have to find all of our media queries and add something like:
JS Polyfill
Less work implementing, but may have a performance hit for IE8 folks
Another option is using a good polyfill. I don't have as much experience with these, after a quick googling @quicksketch found https://github.com/scottjehl/Respond which seems like a good option. Be good to hear if anyone knows of good ones or has experience with this one?
Or... we could 'partially support' IE8
Meaning, IE8 would get the mobile CSS (because it can't interpret the desktop css in the media queries) and we are more specific about the level of support Backdrop has for IE8.
The text was updated successfully, but these errors were encountered: