Minor perf/index.html tweak.

This commit is contained in:
John-David Dalton
2015-01-07 21:02:12 -08:00
parent 0906fbf995
commit 309aa4a3f3

View File

@@ -70,7 +70,7 @@
if (!/[?&]nojava=true(?:&|$)/.test(location.search)) {
// is the applet really needed?
while (!(measured = new Date - begin)) {}
if (measured != 1 && !((perfNow = window.performance) && typeof (perfNow.now || perfNow.webkitNow) == 'function')) {
if (measured > 1 && !((perfNow = window.performance) && typeof (perfNow.now || perfNow.webkitNow) == 'function')) {
// load applet
document.write('<applet code="nano" archive="../vendor/benchmark.js/nano.jar"></applet>');
}