JavaScript Network Speed Tester

JavaScript Network Speed Tester

JavaScript Bandwidth Checker

Tests and Accuracy

Specifying the Tests

By default all the tests will be performed.
The following code will hide Ping test, Upload test and will hide the internet costs:

<html>
    <head>
        <link rel="stylesheet" href="../bins/lib/bootstrap/css/bootstrap.min.css"/>
        <script type="text/javascript" src="../bins/lib/angular/angular.min.js"></script>
        <script type="text/javascript" src="../bins/wl-ng-network-speed-tester.js"></script>
    </head>
    <body>
        <div ng-app="wl-ng-network-speed-tester" wl-ng-network-speed-tester
            show-ping="false"
            show-upload="false"
            show-cost="false"></div>
        <script type="text/javascript">
            //must set the bins url
            angular.module('wl-ng-network-speed-tester').value('bins', '../bins');
        </script>
    </body>
</html>

Now the results should look like:

tut-directive-tests.png
The directive without ping, upload and internet cost

Tests accuracy

By default, the speed results are obtained by computing the average of 10 (ten) consecutive measurements. The number of measurements can be controlled using the iteration attribute. Higher values will lead to higher precision but longer testing time.
The following code will increase the accuracy by setting number of iterations to 20:

<html>
    <head>
        <link rel="stylesheet" href="../bins/lib/bootstrap/css/bootstrap.min.css"/>
        <script type="text/javascript" src="../bins/lib/angular/angular.min.js"></script>
        <script type="text/javascript" src="../bins/wl-ng-network-speed-tester.js"></script>
    </head>
    <body>
        <div ng-app="wl-ng-network-speed-tester" wl-ng-network-speed-tester
            iterations="20"></div>
        <script type="text/javascript">
            //must set the bins url
            angular.module('wl-ng-network-speed-tester').value('bins', '../bins');
        </script>
    </body>
</html>

For more information regarding network tests attributes, please check the Directive Attributes chapter, section Tests and accuracy.

Regular License $6.00
Use by you or one client, in a single end product which end users are not charged for.

Extended License $30.00
Use by you or one client, in a single end product which end users can be charged for.

Short Information

WiseLoop JavaScript Network Speed Tester is an AngularJS module designed to offer a network bandwidth check against your internet server. Many server types are supported such as Apache HTTP, IIS, Node.js, nginx, Tomcat, Oracle HTTP, jetty and based on the download speed, it can also offer an estimation of internet cost that the user should pay for.

Buyer rating:
144 Sales