mirror of
https://github.com/librespeed/speedtest.git
synced 2024-05-10 18:54:52 +00:00
abort request after onload to free ram
This commit is contained in:
@@ -176,6 +176,7 @@ function dlTest(done){
|
||||
}.bind(this);
|
||||
xhr[i].onload=function(){
|
||||
//the large file has been loaded entirely, start again
|
||||
xhr[i].abort();// reset the stream data to empty ram
|
||||
testStream(i,0);
|
||||
}.bind(this);
|
||||
xhr[i].onerror=function(){
|
||||
|
||||
Reference in New Issue
Block a user