Commit 9add911f authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Move google font loading script to the end of page.

This way when fonts.google.com doesn't respond, it won't block the
loading of the rest of the page.
parent 17b7c3f9
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -14,12 +14,6 @@
  <link rel="stylesheet" href="resources/codemirror/codemirror.css" type="text/css" />
  <link rel="stylesheet" href="resources/prettify/prettify.css" type="text/css" />
  <!-- END CSS -->
  <script type="text/javascript">
  (function(){
    var protocol = (document.location.protocol === "https:") ? "https:" : "http:";
    document.write("<link href='"+protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />");
  })();
  </script>

</head>
<body style="background: #fff; min-width: 0;">
@@ -34,5 +28,12 @@
    </div>
  </div>

  <script type="text/javascript">
  (function(){
    var protocol = (document.location.protocol === "https:") ? "https:" : "http:";
    document.write("<link href='"+protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />");
  })();
  </script>

</body>
</html>
+7 −6
Original line number Diff line number Diff line
@@ -11,12 +11,6 @@
  <link rel="stylesheet" href="resources/codemirror/codemirror.css" type="text/css" />
  <link rel="stylesheet" href="resources/prettify/prettify.css" type="text/css" />
  <!-- END CSS -->
  <script type="text/javascript">
  (function(){
    var protocol = (document.location.protocol === "https:") ? "https:" : "http:";
    document.write("<link href='"+protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />");
  })();
  </script>
  <style type="text/css">
  .description .short { display: none !important }
  .description .long { display: block !important }
@@ -51,5 +45,12 @@
      prettyPrint();
  })();
  </script>

  <script type="text/javascript">
  (function(){
    var protocol = (document.location.protocol === "https:") ? "https:" : "http:";
    document.write("<link href='"+protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />");
  })();
  </script>
</body>
</html>
+7 −6
Original line number Diff line number Diff line
@@ -15,12 +15,6 @@
  <link rel="stylesheet" href="resources/codemirror/codemirror.css" type="text/css" />
  <link rel="stylesheet" href="resources/prettify/prettify.css" type="text/css" />
  <!-- END CSS -->
  <script type="text/javascript">
  (function(){
    var protocol = (document.location.protocol === "https:") ? "https:" : "http:";
    document.write("<link href='"+protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />");
  })();
  </script>

  <script type="text/javascript" src="{extjs_path}"></script>
  <script type="text/javascript" src="{data_path}"></script>
@@ -49,5 +43,12 @@

  {body_html}

  <script type="text/javascript">
  (function(){
    var protocol = (document.location.protocol === "https:") ? "https:" : "http:";
    document.write("<link href='"+protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />");
  })();
  </script>

</body>
</html>