Is it possible to get the network size for all loaded resources on a web page?

To analyze page load performance, I need to know the total network size of all resources on the page (html, static content). Is there a way to do this on the client side using javascript?

Explanation: Data must be sent to the server for analysis, so I need access to the network size in javascript.

+4
source share
2 answers

Currently, efforts are being made, called navigation timing, which allows you to implement such a thing:

http://www.html5rocks.com/en/tutorials/webperformance/basics/

, API . - , w3:

http://www.w3.org/TR/navigation-timing/#processing-model

, API - window.performance .

+1

Source: https://habr.com/ru/post/1532624/


All Articles