JSFiddle

  • speedtest API demo #3 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    // Single line javascript in header
    // or before closing body tag:
    //
    // https://www.dslreports.com/assets/st/1.6/js/speedtest ...
  • Browser speed test verification #281 is the latest revision

    Verify.

    var timers = new Array();
    
    function startcheck() {
      setTimeout(function() {
        for(var x=0; x<timers.length; x++)
          clearTimeout(timers[x]);
        success("check finished", "");
        document.getElementById('help').style.display='';
      }, 6000);
      for (var x = 0; x < 1; x++) {
        var p = ['https://'][x];
        checkcors(p);
        checkrangeget(p);
        checkupload(p);
      }
      for (var x = 1; x < 2; x++) {
        var p = ['ws://', 'wss://'][x];
        checkws(p);
      }
    }
    
    function fail(typ, full) {
      document.getElementById('results').innerHTML += "<div class='fail'>" + typ + "<br><small>"+full+"</small></div>";
    }
    
    function success(typ, ms) {
      if ...</timers.length;>