This article needs a technical review. How you can help.
Retrieval of data usage statistics is now done via the
getNetworkStats method allows to retrieve the data usage statistics for the various connection types.
var request = navigator.mozNetworkStats.getNetworkStats(options);
Not part of any specification.