Last active
August 29, 2015 13:56
-
-
Save rogeriopradoj/8977655 to your computer and use it in GitHub Desktop.
javascripts and css fallbacks examples
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
<!-- Bootstrap CSS CDN --> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css"> | |
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> | |
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> | |
<script> | |
// html5shiv local fallback | |
window.html5 || document.write('<script src="vendor/afarkas/html5shiv/dist/html5shiv.js"><\/script>') | |
</script> | |
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> | |
<script> | |
// respond.js local fallback | |
window.respond || document.write('<script src="vendor/scottjehl/respond/respond.min.js"><\/script>') | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment