mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Minor perf/index.html tweak.
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
if (!/[?&]nojava=true(?:&|$)/.test(location.search)) {
|
if (!/[?&]nojava=true(?:&|$)/.test(location.search)) {
|
||||||
// is the applet really needed?
|
// is the applet really needed?
|
||||||
while (!(measured = new Date - begin)) {}
|
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
|
// load applet
|
||||||
document.write('<applet code="nano" archive="../vendor/benchmark.js/nano.jar"></applet>');
|
document.write('<applet code="nano" archive="../vendor/benchmark.js/nano.jar"></applet>');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user