Re: optimilize web page loading

From: Date: Wed, 26 Mar 2008 13:41:46 +0000
Subject: Re: optimilize web page loading
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-272118@lists.php.net to get a copy of this message
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?

« previous php.general (#272118) next »