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: Strange Delay in Page display (OT ??) Date: Thu, 21 Feb 2013 11:31:03 -0700 Lines: 56 Message-ID: X-Trace: individual.net tHfyxjinJQRIMqdsgLu45ws5YP+ev8dL8zfnyEdiBs1I8muzRL/KRrK2iHhDqps1Y/ Cancel-Lock: sha1:q9xgXO/6udI/dgdJfccjxfvqKh4= 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:18584 Hi: I have noted a delay of from 5 to 11 seconds in displaying a page sent from my server to a client (just *me* for now). I have a very simple page with the following line: etc,etc and the following JS *********************** function setupflds() { alert("I get here from 5 to 11 seconds *after* the display shows very quickly on the screen !") ; var srcel=document.getElementById("huserid") ; var dstel=document.getElementById("iuserid") ; dstel.firstChild.nodeValue=" "+srcel.value ; srcel=document.getElementById("hpassword") ; dstel=document.getElementById("ipassword") ; dstel.firstChild.nodeValue=" "+srcel.value ; srcel=document.getElementById("hscrname") ; dstel=document.getElementById("iscrname") ; dstel.firstChild.nodeValue=" "+srcel.value ; } *************************** Environment: My user has just 'registered' at my site thru a series of pages, and I then (from my server CGI software) send the above page, and immediately (and programmatically) send a confirmatory email message to his email address. The user ( i.e., me) sees the page immediately, *but* the onload event does not fire for 5 to 11 seconds after the display is shown ! Question: Under what condition(s) does the 'onload' event fail to initiate its associated function immediately on the display of the page ? Or what is happening to delay the initiation of that function ? Thanks for any insight into this problem. -- Mel Smith