Is there a RoR Gem / configuration that will serve assets locally if an external asset host name doesn't resolve or times out?
<script> window.jQuery || document.write("<script src='js/jquery-1.10.2.min.js'>\x3C/script>")</script>
config.asset_host = -> {
cdn_up? ? "http://mycdn.com" : "http://mydomain.com"
}What would be really nice is if you could specify a fallback host in your DNS prefetch, and the browser would make it "just work."