473,471 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to calculate a HTM Page weight?

Ace
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
Nov 22 '05 #1
2 1299
I see no other solution that getting those resources to get their size...

Patrice

--

"Ace" <Ac*@discussions.microsoft.com> a écrit dans le message de
news:60**********************************@microsof t.com...
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

Nov 22 '05 #2
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

--

"Patrice" <no****@nowhere.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP10.phx.gbl...
I see no other solution that getting those resources to get their size...

Patrice

--

"Ace" <Ac*@discussions.microsoft.com> a écrit dans le message de
news:60**********************************@microsof t.com...
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


Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Phil Powell | last post by:
Relevancy scores are normally defined by a MySQL query on a table that has a fulltext index. The rules for relevancy scoring will exclude certain words due to their being too short (minimum...
1
by: Building Blocks | last post by:
Hi, All I need is a simle calculate form script which contains this: A script that can handle text input, radio buttons, checkboxes, and dropdowns. Each one of these variables will contain a...
53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
2
by: Ace | last post by:
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...
3
by: carla | last post by:
I am using Access 2000 and have a table, tblCurrent. That table contains several fields - three of those fields are , and . What I want to accomplish in my data entry form, is first entering the...
1
by: tonytj | last post by:
This program will read in studentID (3 digit integer number), three quizzes score, four assignments score and two tests scores. Each of the quizzes, assignments, and tests has up to 100 points. The...
1
by: whnkee | last post by:
I need to audit the freight bills charged by freight company which has over 20,000 consignment per week. The basic charge is base on distance and weight, something like this: SYD-MEL <1kg $6...
1
by: soluvah | last post by:
Hello Folks, Been trying to widen my site's body from "779" to "1000" so it almost fills the window. IE 7 on windows XP just dismantles the pages and leaves wide gaps between the left column and...
3
by: hsahealthsavings | last post by:
I made this page using a free html editor called formbreeze. The issue is 1) There is a whole bunch of white space at the end of the page that I cannot seem to figure how to get rid of 2) I have...
1
by: ryuchi311 | last post by:
Php is Pesos Assume that the cost for sending a letter from the Philippines to New York is Php.22.50 for the first 10 grams or less, plus Php.5.75 for each additional gram beyond ten, plus a tax...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.