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:
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.
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.