How to calculate a HTM Page weight?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am trying to write a tool which calculates a html page weight. Suppose I
have a html page which has 5 image references (each image has 10KB size), 1
CSS file of 10KB size.
The total result this exe should return is 60KB.

I am using htmldocument object to read each element in a html doc but not
sure how to get the weight of those depencies.

Please help.

Thanx,
SK
 
Or perhaps just asking the server for the content-length. Don't know much
but I believe the HTTP HEAD verb allows to do that. See the corresponding
specs.

It would allow to avoid downloading those resources...

Patrice

--
 
Back
Top