Page 1 of 1
Get total "weight" of a web page ?
Posted: Mon Jul 23, 2012 9:34 am
by bangkok
Do you know a way to calculate precisely the "weight" of a web page, AKA the total volume images + texts on an URL ?
Re: Get total "weight" of a web page ?
Posted: Mon Jul 23, 2012 10:44 am
by Mark
Hi,
Write a script that puts the URL into a variable, get the length of the variable and parse the text to get all img tags and embedded objects. Put each additional URL into a variable and add its length to the previously recorded length(s). Repeat this for frames.
Or open a website in Firefox, press command-I (or control-I on Windows) and see the size listed on the General tab.
Kind regards,
Mark