Created
July 7, 2014 15:59
-
-
Save thewarpaint/af65a3142192d7956fe0 to your computer and use it in GitHub Desktop.
Angular from CDN with fallback
This file contains hidden or 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
<!-- attempt to load AngularJS from CDN --> | |
<script src="https://code.angularjs.org/1.2.16/angular.min.js"></script> | |
<!-- if AngularJS fails to load fallback a local version --> | |
<script>window.angular || document.write('<script src="local/path/to/angular.min.js"><\/script>');</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment