Results 1 to 3 of 3

Thread: Page Loading Time

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Sudbury, Ontario, Canada
    Posts
    274

    Page Loading Time

    How can I track how long it took for a page to load?

    Will the datediff function do it?

    Thanks in advance.

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    You have to start a timer or grab the epoch seconds just before you ask for the page, then then stop the timer or get the epoch seconds when the page it done. You have to build a client to actually ask for the page.

    I used to have a Perl script that did that.

    Anyway, it will only time the responsiveness of the server and the time to download the file(s). It won't take into consideration how long it takes the browser to draw the page. (Opera draws much faster than IE or Netscape)

    This is client side, not server side. You can't put anything into the web page that will time it.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Sudbury, Ontario, Canada
    Posts
    274
    Thanks for the quick response.

    Basically, all I want to do is time how fast it loads on the server, from start to finish and post that on the web page that's loading.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width