openspeedtest / Speed-Test

SpeedTest by OpenSpeedTestâ„¢ is a Free and Open-Source HTML5 Network Performance Estimation Tool Written in Vanilla Javascript and only uses built-in Web APIs like XMLHttpRequest (XHR), HTML, CSS, JS, & SVG. No Third-Party frameworks or libraries are Required. Started in 2011 and moved to OpenSpeedTest.com dedicated Project/Domain Name in 2013.
https://openspeedtest.com
MIT License
2k stars 186 forks source link

Feature request: Restart button #140

Open byteit101 opened 1 month ago

byteit101 commented 1 month ago

I am using OST for wifi testing, and as such, I rerun the tests constantly. It would be nice if the end screen had a one-click "redo" or "restart" button, instead of the current process of refreshing the page and then clicking "Start" again.

openspeedtest commented 1 month ago

Refreshing the page is better for performance reasons. Some browsers hold test data in memory, and a page refresh will release the used memory.

byteit101 commented 1 month ago

Sure, but it seems pretty easy to add a button that would do something like:

sessionStorage.setItem("autorun", true);
window.location.reload();

and then the onload code would add

if (sessionStorage.getItem("autorun")) {
    sessionStorage.setItem("autorun", false);
   // start benchmark
}
openspeedtest commented 1 month ago

Great idea! I'll give it a try soon. Thanks!

CitybookServicesLTD commented 1 month ago

+1

Looking forward to have a start again button.