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

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top