Re: Re: optimilize web page loading
| From: | Andrew Ballard | Date: | Wed, 26 Mar 2008 18:37:59 +0000 |
| Subject: | Re: Re: optimilize web page loading | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272140@lists.php.net to get a copy of this message | ||
On Wed, Mar 26, 2008 at 1:18 PM, Al <news@ridersite.org> wrote:
> You are really asking an HTML question, if you think about it.
>
> At the PHP level, either use output buffering or assemble all your html string as a variable
> and
> then echo it. The goal is to compress the string into the minimum number of packets.
Yes, but do so smartly. Excessive string concatenation can slow things
down as well. On most pages you probably won't notice much difference,
but I have seen instances where the difference was painfully obvious.
Andrew