diff --git a/perf/asset/perf-ui.js b/perf/asset/perf-ui.js index 406a2f4d2..ecb5b7ce2 100644 --- a/perf/asset/perf-ui.js +++ b/perf/asset/perf-ui.js @@ -87,6 +87,9 @@ otherList = span2.lastChild, toolbar = document.getElementById('perf-toolbar'); + toolbar.appendChild(span2); + toolbar.appendChild(span1); + buildList.selectedIndex = (function() { switch (build) { case 'lodash-compat': return 0; @@ -117,9 +120,6 @@ return -1; }()); - toolbar.appendChild(span2); - toolbar.appendChild(span1); - addListener(buildList, 'change', eventHandler); addListener(otherList, 'change', eventHandler); }); diff --git a/test/asset/test-ui.js b/test/asset/test-ui.js index 0af9c6eb0..9035acd39 100644 --- a/test/asset/test-ui.js +++ b/test/asset/test-ui.js @@ -59,6 +59,9 @@ setTimeout(init, 15); return; } + toolbar.appendChild(span1); + toolbar.appendChild(span2); + buildList.selectedIndex = (function() { switch (build) { case 'lodash-compat': return 1; @@ -86,9 +89,6 @@ return -1; }()); - toolbar.appendChild(span1); - toolbar.appendChild(span2); - addListener(buildList, 'change', eventHandler); addListener(loaderList, 'change', eventHandler); }