Skip to content

Instantly share code, notes, and snippets.

@rosschapman
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rosschapman/6cb5fa1d5b48b8e311d2 to your computer and use it in GitHub Desktop.
Save rosschapman/6cb5fa1d5b48b8e311d2 to your computer and use it in GitHub Desktop.
Respond.js Rails Partial
<%#
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