<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">I took a look at your site and it reminded me
      of a problem I had once - not really the same symptoms, but there
      may be some commonality as to cause. What I was seeing in my app
      was that occasionally one or two images might not load in the
      browser. No real pattern as to which images, but it did seem to
      happen more when the browser sent multiple requests to the server
      in a very short period of time. What I did was insert a delay in
      responding to a file request if it was too soon after the previous
      request. I'm wondering if something similar is happening to you,
      only that the long file times correspond to a response that did
      not get sent/received initially, but did after a timeout/retry.
      What you might do is try to capture in the server when you receive
      requests and when you think you are sending the response. Maybe
      the long file times will show a second request or somesuch.&nbsp; I've
      attached the code I modified below to aid in experimentation.<br>
      <br>
      Cheers,<br>
      Bob<br>
      <br>
      documentForFile: arg<br>
      <br>
      &nbsp;&nbsp;&nbsp; | wait result waitList myFirstTime |<br>
      <br>
      &nbsp;&nbsp;&nbsp; self prepare.<br>
      <br>
      &nbsp;&nbsp;&nbsp; myFirstTime _ Time millisecondClockValue.<br>
      &nbsp;&nbsp;&nbsp; lastRequestTime ifNil: [lastRequestTime _ 0].<br>
      &nbsp;&nbsp;&nbsp; lastRequestTime _ lastRequestTime min: myFirstTime.<br>
      &nbsp;&nbsp;&nbsp; waitList _ #().<br>
      &nbsp;&nbsp;&nbsp; [<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wait _ 20 - (Time millisecondClockValue - lastRequestTime)
      min: 20.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wait &gt; 0<br>
      &nbsp;&nbsp;&nbsp; ] whileTrue: [<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; waitList _ waitList,{wait}.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wait asString,' wait for ',arg asString,'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
      displayAt: 0@20.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (Delay forMilliseconds: wait) wait.<br>
      &nbsp;&nbsp;&nbsp; ].<br>
      <br>
      &nbsp;&nbsp;&nbsp; lastRequestTime _ Time millisecondClockValue.<br>
      &nbsp;&nbsp;&nbsp; result _ self documentForFileInner: arg.<br>
      &nbsp;&nbsp;&nbsp; TallyingDocumentTimes ifNotNil: [<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TallyingDocumentTimes add: {<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; myFirstTime.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Time millisecondClockValue.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; result size.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; waitList.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; arg.<br>
      "thisContext longStack."<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }.<br>
      &nbsp;&nbsp;&nbsp; ].<br>
      <br>
      &nbsp;&nbsp;&nbsp; ^result<br>
      <br>
      <br>
    </font>
    <div class="moz-cite-prefix">On 11/25/12 6:24 PM, Tudor Girba wrote:<br>
    </div>
    <blockquote
      cite="mid:6F9649E1-0CEF-48A2-A248-DF6E0C94E030@tudorgirba.com"
      type="cite">
      <pre wrap="">Thanks. But, somehow, I think size is not really the issue.

Somehow randomly, one or two of the pictures take significantly more (the delta is measured in seconds) to load than the others.

And yes, I am using the timeline debugging functionality from the browser.

It's strange.

Doru

On 24 Nov 2012, at 10:26, Gerhard Obermann <a class="moz-txt-link-rfc2396E" href="mailto:obi068@gmail.com">&lt;obi068@gmail.com&gt;</a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hi Doru,

I would reduce the image size to the displayed size and reduce the bit depth of the png to 8.
I tried it with home-icons-400-200-37.png.
Before: 31.092 Bytes
After: 7.678 Bytes

Cheers
Gerhard


On Sat, Nov 24, 2012 at 8:29 AM, Tudor Girba <a class="moz-txt-link-rfc2396E" href="mailto:tudor@tudorgirba.com">&lt;tudor@tudorgirba.com&gt;</a> wrote:
Hi,

I am working on a pier page, and I have a couple of images in it that seem to be slow to load, although they are served through apache.

It is true that the images are slightly large (~230K), but still I think they appear too slow.

The example is here:
<a class="moz-txt-link-freetext" href="http://www.humane-assessment.com/">http://www.humane-assessment.com/</a>

Anyone has any idea of why this would happen?

Cheers,
Doru


--
<a class="moz-txt-link-abbreviated" href="http://www.tudorgirba.com">www.tudorgirba.com</a>

"Live like you mean it."

_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>

_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
      </blockquote>
      <pre wrap="">
--
<a class="moz-txt-link-abbreviated" href="http://www.tudorgirba.com">www.tudorgirba.com</a>

"We can create beautiful models in a vacuum.
But, to get them effective we have to deal with the inconvenience of reality."

_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>

</pre>
    </blockquote>
    <br>
  </body>
</html>