Re: optimilize web page loading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can use onload and XmlHttpRequest to send back the desktop client
computer date/time and compare that with your start time.

Note that you'll need to test on [a] computer[s] where you know the
date/time is set correctly, which is not true of the general visitor.

On Wed, March 26, 2008 3:25 am, Alain Roger wrote:
> Hi,
>
> i would like to know if there is a way to know how long does a web
> page need
> to be loaded into browser ?
> this is interesting fact for me, as i will optimilize my PHP code in
> order
> to reduce this time to minimum.
>
> i was thinking to use some timestamp but as it will be in PHP, it mean
> that
> it should take time from server and therefore it is not fully
> representative
> from client browser time needed to load page :-(
> purpose :
> mywebpage.php -> 23 s before optimalization
> mywebpage.php -> 12 s after optimalization
>
> do you have any idea ?
>
> --
> Alain
> ------------------------------------
> Windows XP SP2
> PostgreSQL 8.2.4 / MS SQL server 2005
> Apache 2.2.4
> PHP 5.2.4
> C# 2005-2008
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux