Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!nuzba.szn.dk!pnx.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: Strange Delay in Page display (OT ??) Date: Mon, 25 Feb 2013 13:29:43 -0700 Lines: 27 Message-ID: References: X-Trace: individual.net f25aanrRUCaaJQOdgOONDQr+jq0NxeBvGus8LTlmkLyoqwWIkQ Cancel-Lock: sha1:oYwNroDklLPrketOno1UjYU9fnM= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Xref: csiph.com comp.lang.javascript:18629 Richard said: ">> > It could be that the server doesn't send the very last of the page to > the browser until the after sending the email. Perhaps forcing a flush > of the buffer before doing the email send. > > onload can not happen until the page IS fully loaded, but many browsers > will work on rendering a partial page, so if the closing page tags are > delayed then that would delay the onload, but possibly not the page > display. Hi Richard: So, I guess that *sending* both emails by my sendmail() function in my server somehow either ties up my CGI app, or ties up my Apache server software, and slows one or both down until my sendmail() function is completed. I'll have to find a way to somehow lower the priority of the sendmail so it doesn't slow things down. Thanks for the comment. -Mel