Permalink
Browse files

Use ng-cloak to prevent content flickering

  • Loading branch information...
1 parent 6d0071f commit 2c98f0c1acd3331e55b1d86c4397c46474887712 @crissdev crissdev committed Apr 8, 2015
Showing with 8 additions and 7 deletions.
  1. +8 −7 index.html
View
@@ -3,16 +3,17 @@
<head>
<meta charset="utf-8">
<title>koGrid</title>
- <link rel="stylesheet" href="lib/FortAwesome-Font-Awesome-ee55c85/css/font-awesome.css" />
+ <link rel="stylesheet" href="lib/FortAwesome-Font-Awesome-ee55c85/css/font-awesome.css"/>
<link rel="stylesheet" href="lib/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="lib/bootstrap/css/bootstrap-responsive.css"/>
<link rel="stylesheet" href="css/prettify.css"/>
<link rel="stylesheet" href="css/KoGrid.css"/>
<link rel="stylesheet" href="lib/jquery-ui/css/overcast/jquery-ui-1.9.1.custom.css" />
<link rel="stylesheet" href="css/app.css"/>
+ <style type="text/css">.ng-cloak{display:none}</style>
</head>
- <body ng-controller="PageNavigationCtrl">
- <div id="header" class="navbar navbar-inverse navbar-fixed-top headerstyles rowstyles">
+ <body class="ng-cloak" ng-controller="PageNavigationCtrl">
+ <div id="header" class="navbar navbar-inverse navbar-fixed-top headerstyles rowstyles">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#" ng-click="switchPage('applications')">koGrid</a>
@@ -30,11 +31,11 @@
<div ng-view></div>
<div class="footerstyles rowstyles portal-footer-content">
<div class="portal-footer-info">
- <p>koGrid</p>
+ <p>koGrid</p>
</div>
- </div>
+ </div>
</body>
- <script type="text/javascript" src="lib/prettify.js"></script>
+ <script type="text/javascript" src="lib/prettify.js"></script>
<script type="text/javascript" src="lib/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="lib/jquery-ui/js/jquery-ui-1.9.1.custom.js"></script>
<script type="text/javascript" src="lib/angular.js"></script>
@@ -47,4 +48,4 @@
<script type="text/javascript" src="js/controllers.js"></script>
<script type="text/javascript" src="js/viewModels.js"></script>
<script type="text/javascript" src="js/exampleControllers.js"></script>
-</html>
+</html>

0 comments on commit 2c98f0c

Please sign in to comment.