Skip to content

Commit

Permalink
Bug 1356652 - Add Speedometer files to the PGO training list; r=ted
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: 9Ei8p0t1JbB

--HG--
extra : rebase_source : 63a169a38ae8f2bd1fcd86245aee7fbb8b139e6b
  • Loading branch information
David Major committed Aug 25, 2017
1 parent 20e9300 commit 3bc8841
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build/pgo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

var list =
[
"js-input/speedometer/index.html",
"blueprint/sample.html",
"blueprint/forms.html",
"blueprint/grid.html",
Expand Down Expand Up @@ -38,15 +39,19 @@
"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) {
Expand Down

0 comments on commit 3bc8841

Please sign in to comment.