Last active
August 29, 2015 14:21
-
-
Save rosschapman/6cb5fa1d5b48b8e311d2 to your computer and use it in GitHub Desktop.
Respond.js Rails Partial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%# | |
The Respond.js library polyfills media queries for IE8 (and below). Note that order of the | |
following statements is important. Read more: https://github.com/scottjehl/Respond. | |
%> | |
<!--[if IE 8]> | |
<%= javascript_include_tag 'respond' %> | |
<%# | |
Cross-domain (CDN) proxy. | |
Read more: https://github.com/scottjehl/Respond#cdnx-domain-setup. | |
%> | |
<link href="<%= asset_path '/assets/respond-proxy.html' %>" id='respond-proxy' rel='respond-proxy'> | |
<link href="<%= local_asset_url('respond.proxy.gif', request) %>" id='respond-redirect' rel='respond-redirect'> | |
<script src="<%= local_asset_url('respond.proxy.js', request) %>" /></script> | |
<![endif]--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment