Last Updated: February 25, 2016
·
1.022K
· micjamking

Quick min/max-width media query support in IE6-8

Just include the following in the <head> of your document.

<!--[if lt IE 9]>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.2.0/respond.js"></script>
<![endif]-->

The script conditionally loads respond.js, a min-width/max-width polyfill for IE6-8. The conditional comments willy only load the script if a person is using IE8 or lower.

Boom.