how do i handle 10000 datas in the array without affecting performance in javascript : I am trying to get 10000 data in an array from the server. But when it was loading initially i takes long time to render in dom. I tried the following approach like divide and load every hundreds of data in new array. The following code i tried but not working. Please let me know if anyone knows in javascript.

    
        var count = 0;
    var newarray=[];
    var i;
    for(i=count;i<10000;i++){
    if(i > 100){ count = i; }
    newarray.push(data[i]);
    }
    

I tried this code on loading but still performance issue not solved. 