Get total "weight" of a web page ?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Get total "weight" of a web page ?
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 ?
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
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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode