Created
February 29, 2016 17:05
-
-
Save jgarciaruiz/92a53518e585d297c33d to your computer and use it in GitHub Desktop.
js fallback if CND fails to load
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
<!-- load script from CDN --> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script> | |
<!-- if fails, fallback a local version --> | |
<script>window.angular || document.write('<script src="js/angular.min.js"><\/script>');</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment