Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: size of page

by ajt (Prior)
on Oct 11, 2002 at 12:49 UTC ( #204485=note: print w/ replies, xml ) Need Help??


in reply to size of page

Our very own meryln, wrote a column all about calculating the size and hence download time for a given web page. You can read all about it here, however be aware that it is not complete, as it does not add the weight of a style sheet, nor can it take into account the weight of a image loaded via a style sheet, or ECMA Script call.

I tweaked the code to included linked style sheets, but it still ignores "@import"ed style sheets, and any image loaded via a style sheet or ECMA, as CSS and ECMA isn't parsed by any of the HTML parsers...

Update: NONE of the tools that parse HTML alone will give correct total-page sizes as they all miss scripting (ECMA, JavaScript etc. etc.) and CSS linked assets.


--
ajt


Comment on Re: size of page

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://204485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2015-07-05 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls