Permalink
Browse files

Load all javascript dependencies at bottom of page to avoid blocking …

…the HTML from loading.
  • Loading branch information...
1 parent 0fe20a3 commit f6c4bed247661db0fc531a5ebbcf80de27fa8f9a @shsu committed Mar 1, 2014
Showing with 13 additions and 12 deletions.
  1. +13 −12 src/main/webapp/index.html
  2. 0 src/main/webapp/{ → js}/app.js
View
25 src/main/webapp/index.html
@@ -6,18 +6,9 @@
<title>Cascadia Wireframes</title>
<meta name="viewport" content="width=device-width">
- <!-- Begin Loading Dependencies From CDNs -->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular-resource.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular-route.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/restangular/1.3.1/restangular.js"></script>
- <!-- End Loading Dependencies From CDNs -->
<link rel="stylesheet" href="/css/app.css">
- <script src="/js/controllers.js"></script>
- <script src="app.js"></script>
</head>
<body class="body">
<nav class="navbar navbar-inverse bg-primary" role="navigation">
@@ -43,6 +34,16 @@
<div class="container">
<div ng-view></div>
</div><!-- .container -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
- <script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
-</body>
+</body>
+
+<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
+<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular-resource.js"></script>
+<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular-route.min.js"></script>
+<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
+<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/restangular/1.3.1/restangular.js"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js"></script>
+
+<script src="js/controllers.js"></script>
+<script src="js/app.js"></script>
+</html>
View
0 src/main/webapp/app.js → src/main/webapp/js/app.js
File renamed without changes.

0 comments on commit f6c4bed

Please sign in to comment.