File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 27
27
< script src ="perf.js "> </ script >
28
28
< script >
29
29
( function ( ) {
30
- if ( / [ ? & ] n o j a v a = t r u e (?: & | $ ) / . test ( location . search ) ) {
31
- return ;
32
- }
33
30
var measured ,
34
31
perfNow ,
35
32
begin = new Date ;
36
33
37
- // is the applet really needed?
38
- while ( ! ( measured = new Date - begin ) ) { }
39
- if ( measured != 1 && ! ( ( perfNow = window . performance ) && typeof ( perfNow . now || perfNow . webkitNow ) == 'function' ) ) {
40
- // load applet
41
- document . write ( '<applet code="nano" archive="../vendor/benchmark.js/nano.jar"></applet>' ) ;
42
- }
43
- } ( ) ) ;
44
- </ script >
45
- < script >
46
- ( function ( ) {
47
34
function init ( ) {
48
35
var fbUI = document . getElementById ( 'FirebugUI' ) ,
49
36
fbDoc = fbUI && ( fbDoc = fbUI . contentWindow || fbUI . contentDocument ) . document || fbDoc ,
56
43
setTimeout ( run , 15 ) ;
57
44
}
58
45
46
+ // is the applet permitted?
47
+ if ( ! / [ ? & ] n o j a v a = t r u e (?: & | $ ) / . test ( location . search ) ) {
48
+ // is the applet really needed?
49
+ while ( ! ( measured = new Date - begin ) ) { }
50
+ if ( measured != 1 && ! ( ( perfNow = window . performance ) && typeof ( perfNow . now || perfNow . webkitNow ) == 'function' ) ) {
51
+ // load applet
52
+ document . write ( '<applet code="nano" archive="../vendor/benchmark.js/nano.jar"></applet>' ) ;
53
+ }
54
+ }
59
55
window . onload = init ;
60
56
} ( ) ) ;
61
57
</ script >
You can’t perform that action at this time.
0 commit comments