Put analytics.js below the fold, later to load.

This commit is contained in:
Chris H-C 2018-01-23 16:42:09 -05:00 коммит произвёл Chris H-C
Родитель f56108c57a
Коммит 10d6d9b475
10 изменённых файлов: 13 добавлений и 10 удалений

Просмотреть файл

@ -13,7 +13,6 @@
<link rel="stylesheet" href="addon-perf.css" />
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
<script src="../analytics/analytics.js"></script>
</head>
<body>
<!--
@ -138,6 +137,7 @@
</div>
<div id='footer'></div>
<div><a href="https://www.mozilla.org/en-US/privacy/websites/">Mozilla's Website Privacy Notice</a></div>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -11,7 +11,6 @@
<link href="css/select2.min.css" rel="stylesheet"/>
<link href="css/select2-bootstrap.css" rel="stylesheet"/>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
<script src="../analytics/analytics.js"></script>
</head>
<body>
<script src="js/jquery.min.js"></script>
@ -71,5 +70,6 @@
</div>
</div>
<div><a href="https://www.mozilla.org/en-US/privacy/websites/">Mozilla's Website Privacy Notice</a></div>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -16,7 +16,6 @@
<script src="thresholds.js"></script>
<script src="latest-versions.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
<script src="../analytics/analytics.js"></script>
</head>
<body>
<h1>Stability Dashboard</h1>
@ -428,5 +427,6 @@ xhr.open("GET", "https://sql.telemetry.mozilla.org/api/queries/1092/results.json
xhr.send();
</script>
<div><a href="https://www.mozilla.org/en-US/privacy/websites/">Mozilla's Website Privacy Notice</a></div>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -14,7 +14,6 @@
<script src="https://telemetry.mozilla.org/v2/telemetry.js"></script>
<script src="generator.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
<script src="../analytics/analytics.js"></script>
</head>
<body>
<header>
@ -136,5 +135,6 @@
</form>
</main>
<div><a href="https://www.mozilla.org/en-US/privacy/websites/">Mozilla's Website Privacy Notice</a></div>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -26,7 +26,6 @@ input[type=number] { -moz-appearance: textfield; }
input { margin-top: 3px; }
</style>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
<script src="../analytics/analytics.js"></script>
</head>
<body>
<div class="container-fluid">
@ -89,5 +88,7 @@ input { margin-top: 3px; }
<script src="//telemetry.mozilla.org/v2/telemetry.js"></script>
<script src="simulator.js"></script>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -13,7 +13,6 @@
<link rel="stylesheet" href="style/dashboards.css">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
<script src="analytics/analytics.js"></script>
</head>
<body>
<div class="container-fluid">
@ -170,5 +169,6 @@
window.location.href = window.location.origin + "/advanced/" + window.location.hash;
}
</script>
<script src="analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -17,7 +17,6 @@
<link rel="stylesheet" type="text/css" href="style/dashboards.css" />
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
<script src="../analytics/analytics.js"></script>
</head>
<body>
<div class="container-fluid">
@ -228,5 +227,7 @@
<script src="../v2/telemetry.js"></script>
<script src="src/dashboards.js"></script>
<script src="src/dist.js"></script>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -15,7 +15,6 @@
<link rel="stylesheet" type="text/css" href="style/dashboards.css" />
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
<script src="../analytics/analytics.js"></script>
</head>
<body>
<div class="container-fluid">
@ -122,5 +121,7 @@
<script src="../v2/telemetry.js"></script>
<script src="src/dashboards.js"></script>
<script src="src/evo.js"></script>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -15,7 +15,6 @@
#tocify-header0 > .tocify-item { font-weight: bold; } /* bold the top-level entries */
</style>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
<script src="../analytics/analytics.js"></script>
</head>
<body>
<form id="histogram-filters" class="navbar-form inline" style="position: fixed; right: 1em; top: 1em; z-index: 1">
@ -170,5 +169,6 @@
<script>
$(function() { $("#toc").tocify({theme: "bootstrap3"}); });
</script>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -9,7 +9,6 @@
<script type="text/javascript" src="https://telemetry.mozilla.org/new-pipeline/lib/d3pie.min.js"></script>
<script type="text/javascript" src="index.js" charset="utf-8"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
<script src="../analytics/analytics.js"></script>
</head>
<body onload="initDashboard()">
<div id="weekly-dropdown-div">
@ -100,6 +99,7 @@ criteria are applied is the same order as they are listed above.</div>
This dashboard is maintained by <a href="mailto:rstrong@mozilla.com">:rstrong</a>.<br/>
The Spark Notebook for this dashboard is scheduled to run on Monday and Tuesday every week since the longitudinal datasource isn't consistently available on Monday. The Spark Notebook can be found <a href="https://github.com/mozilla/mozilla-reports/tree/master/projects/app_update_out_of_date.kp/orig_src/app_update_out_of_date.ipynb">here</a>.
<div><a href="https://www.mozilla.org/en-US/privacy/websites/">Mozilla's Website Privacy Notice</a></div>
<script src="../analytics/analytics.js"></script>
</div>
</body>
</html>