Re: optimilize web page loading
| From: | Wolf | Date: | Wed, 26 Mar 2008 14:30:14 +0000 |
| Subject: | Re: optimilize web page loading | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-272130@lists.php.net to get a copy of this message | ||
---- Alain Roger <raf.news@gmail.com> 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 ?
General rule of thumb used to be 2 seconds... If your page hasn't outputted some form of
usable information in 2 seconds or less, people don't stick around.
What's worse is that some browsers require the whole page contents before they will draw the
page, so you get a white page while the page is loading into the browser and the client gets
nothing.
Firebug/Yslow are both good extensions to load for Firefox to see where the bottlenecks are.
Wolf