Bug 1356652 - Add Speedometer files to the PGO training list; r=ted
MozReview-Commit-ID: 9Ei8p0t1JbB
--- a/build/pgo/index.html
+++ b/build/pgo/index.html
@@ -1,15 +1,16 @@
<script>
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var list =
[
+ "js-input/speedometer/index.html",
"blueprint/sample.html",
"blueprint/forms.html",
"blueprint/grid.html",
"blueprint/elements.html",
"js-input/3d-thingy.html",
"js-input/crypto-otp.html",
"js-input/sunspider/3d-cube.html",
"js-input/sunspider/3d-morph.html",
@@ -33,25 +34,29 @@
"js-input/sunspider/math-spectral-norm.html",
"js-input/sunspider/regexp-dna.html",
"js-input/sunspider/string-base64.html",
"js-input/sunspider/string-fasta.html",
"js-input/sunspider/string-tagcloud.html",
"js-input/sunspider/string-unpack-code.html",
"js-input/sunspider/string-validate-input.html"
];
- var interval = 1000;
+ var defaultInterval = 2000;
var idx = 0;
var w;
window.onload = function () {
w = window.open("about:blank");
- window.setTimeout(loadURL, interval);
+ window.setTimeout(loadURL, defaultInterval);
};
function loadURL () {
+ var interval = defaultInterval;
+ if (idx == 0) {
+ interval = 90000;
+ }
w.close();
w = window.open(list[idx++]);
if (idx < list.length) {
window.setTimeout(loadURL, interval);
} else {
window.setTimeout(Quitter.quit, interval);
}
}