function test() {
    some_code;
}
function do_many_test() {
    var i;
    for(i=0;i<100;i++){
        test();
    }
    some_code;
    some_code;
    some_code;
}
The function do_many_test() makes browser stuck for about ten seconds: is there a way to call it making it running in background while the execution flow continues to next code?
 
    