when I see the codes below:
- return window.JSON && window.JSON.parse ?
- window.JSON.parse( data ) :
- (new Function("return " + data))();
I think the the
- (new Function("return " + data))();
is slower than use eval directly, it may be improved this way:
- ( eval( "["+data+"]" ) ) [0]