<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb">
<div class="h5">
&gt;&gt;<br>
&gt;&gt; Are you logging the browser response time or is this server-side rendering<br>
&gt;&gt; timing? What is the code, etc… ?<br>
&gt;&gt;<br>
&gt;<br>
&gt; I am using the developer tools. I attach 2 screenshots, one POST (normal<br>
&gt; one) takes 246ms and the slow one that takes 1.66 seconds in this example.<br>
&gt; Both &quot;submits&quot; were just a click in a menu button.<br>
&gt;<br>
&gt; The menu is renderrd like this:<br>
&gt;<br>
&gt; renderActivityMenuOn: html id: anId<br>
&gt; (self showActivityMenu and: [self activityMenu isEmpty not]) ifTrue: [<br>
&gt; html div id:&#39;activityMenuDiv&#39;; with: [<br>
&gt; html form: [<br>
&gt; html<br>
&gt; tbsNavbar<br>
&gt; id: anId;<br>
&gt; beDefault;<br>
&gt; with: [<br>
&gt; self activityMenu<br>
&gt; do: [ :menuAction |<br>
&gt; html space.<br>
&gt; html<br>
&gt; tbsNavbarButton<br>
&gt; beSmall;<br>
&gt; beActiveIf: ((menuAction = selectedActivityMenuAction)  or:<br>
&gt; [selectedActivityMenuAction isNil and: [self activityMenu first =<br>
&gt; menuAction]]) ;<br>
&gt; callback: [menuAction logAndValue: self.<br>
&gt; selectedActivityMenuAction := menuAction];<br>
&gt; with: [ html text: menuAction label ] ] ] ]]]<br>
&gt;<br>
&gt; So basically it is a form and each menu item is a button.<br>
&gt;<br>
&gt; I don&#39;t understand why a POST could take 200ms for one menu item and 1.6<br>
&gt; second for another one.<br>
&gt;<br>
&gt; Any idea? how can I debug it?<br>
<br>
</div></div>The POST is the callback processing, not the rendering. What do you do<br>
in #logAndValue:?<br>
<br></blockquote><div><br></div><div><br></div><div>Hi Philippe,</div><div><br></div><div>I am confused by your statement about &quot;the POST is the callback processing&quot;. What do you mean?</div><div>In my case, I always get 2 request, one is a POST, which always answer 302 as status, and it is always very small.</div>
<div>Then, I have a GET which is the real request and the one that depends on the thing I am executing.</div><div>What it is strange is that the first request (the POST that always answer 302) in one case it takes 200ms and in another 1.6 seconds.</div>
<div><br></div><div>the callback time isn&#39;t it included in the GET, not in the POST? </div><div><br></div><div><br></div><div>Thanks for the clarification. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Cheers<br>
<span class="HOEnZb"><font color="#888888">Philippe<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" class="vt-p">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" class="vt-p">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</div></div>