8000 Switch order of `performance.now` check in perf/index.html and conver… · lodash/lodash@de6a3c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit de6a3c5

Browse files
committed
Switch order of performance.now check in perf/index.html and convert benchmarks to strings in perf.js for better compatibility with older browsers.
Former-commit-id: d766316c9c162e31dd0471d80b50ecfd1da2c9a8
1 parent 260ff6d commit de6a3c5

File tree

2 files changed

+648
-793
lines changed

2 files changed

+648
-793
lines changed

perf/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
// is the applet really needed?
3838
while (!(measured = new Date - begin)) { }
39-
if (measured != 1 && !((perfNow = window.performance) && typeof (perfNow.webkitNow || perfNow.now) == 'function')) {
39+
if (measured != 1 && !((perfNow = window.performance) && typeof (perfNow.now || perfNow.webkitNow) == 'function')) {
4040
// load applet
4141
document.write('<applet code="nano" archive="../vendor/benchmark.js/nano.jar"></applet>');
4242
}

0 commit comments

Comments
 (0)
0