How can I trace the page download percent?

Comments


  • huh? :confused:

    best regards,

    sebastian mohrenstecher
    executive secretary
    net::allies

    www.net-allies.de
    [email protected]

  • :
    :

    Hi there,

    I was considering putting this reply inside the subject but I guess I'll consider everyone else reading it!

    IE has a READYSTATE feature that tells you whether the page has been loaded correctly.

    If it hasn't it says the page is "LOADING".

    This is an IE specific feature (I believe) and can only give you the pages state in a few values not the percentage.

    If you were to have all your pages hardcoded in JavaScript you could work out the total amount of lines you had to render and as you render the lines, keep a count of how many you have rendered.

    Therefore...

    percentage_loaded = amount_of_lines_rendered / total_amount_of_lines;

    There's a percentage for ya!

    HTH
    Bradley q:)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories