You should benchmark your app with and without the plugin. Try benchmarking
common pages like the homepage, login, etc. and see for yourself if the
performance gains outweigh the minification-on-the-fly cost.

--
Hector Virgen
Sent from my Droid X
On Dec 22, 2010 7:56 PM, "Sergio Rinaudo" <[email protected]> wrote:
>
> Hi Hector,
> it perfectly worked!
>
> Do you think is a good idea minify the html response in this way to
increase performances?
>
> Thank you very much for your help
>
> Sergio
>
>
>
>
> Date: Wed, 22 Dec 2010 19:35:23 -0800
> Subject: Re: [fw-general] Get full html response in a plugin
> From: [email protected]
> To: [email protected]
> CC: [email protected]
>
> You'll need to register your plugin after the layout plugin, which I
believe is registered in position 100. Try this:
> $front->registerPlugin($myplugin, 150);
> Also don't forget to return early in your post-dispatch hook if the
request is not marked as dispatched (meaning a forward was detected):
> if (!$request->isDispatched()) {
>
> return;
>
> }
> --
>
> Hector Virgen
>
> Sent from my Droid X
> On Dec 22, 2010 4:53 PM, "Sergio Rinaudo" <[email protected]>
wrote:
>>
>> Hi all,
>> how to get and set the full html response in a plugin?
>
>>
>> I'm trying to minify the html response but apparently I cannot get and
set the the full html response using response object's
>> getBody/setBody methods.
>>
>> I am currently working inside the postDispatch hook in my test plugin.
>
>>
>>
>> Thanks for any help.
>>
>>
>> Sergio
>>
>>
>>
>

Reply via email to