Skip to content

Instantly share code, notes, and snippets.

@gnovaro
Last active August 29, 2015 14:17
Show Gist options
  • Save gnovaro/4c4c45b6163759d085c9 to your computer and use it in GitHub Desktop.
Save gnovaro/4c4c45b6163759d085c9 to your computer and use it in GitHub Desktop.
<!-- attempt to load AngularJS from CDN -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script>
<!-- if AngularJS fails to load fallback a local version -->
<script>window.angular || document.write('<script src="/assets/js/vendor/angularjs/1.2.19/angular.min.js"><\/script>');</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment