Skip to content

Commit

Permalink
Add credit in perf.js for Lo-Dash perf tests, which the init code is …
Browse files Browse the repository at this point in the history
…based on.
  • Loading branch information
slevithan committed Aug 20, 2012
1 parent 299da97 commit bd5fc2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/perf/index.html
Expand Up @@ -30,7 +30,9 @@


<script src="lib/benchmark.js"></script> <script src="lib/benchmark.js"></script>
<script src="perf.js"></script> <script src="perf.js"></script>

<script> <script>
// Initialization code adapted from Lo-Dash <http://lodash.com/> performance tests...
(function() { (function() {
if (/[?&]nojava=true(?:&|$)/.test(location.search)) { if (/[?&]nojava=true(?:&|$)/.test(location.search)) {
return; return;
Expand All @@ -47,7 +49,6 @@
document.write('<applet code="nano" archive="lib/nano.jar"></applet>'); document.write('<applet code="nano" archive="lib/nano.jar"></applet>');
} }
}()); }());

onload = function() { onload = function() {
// Give the applet time to initialize // Give the applet time to initialize
setTimeout(run, 15); setTimeout(run, 15);
Expand Down

0 comments on commit bd5fc2b

Please sign in to comment.