[Javascript] Multiple ajax calls onload

Murphy, Matt Matt.Murphy at thermofisher.com
Wed Jul 25 12:32:41 CDT 2007


Yes, I fully agree, though there are some things about this page that
are no longer under my control, and so can't be sped up. (stupid Oracle
db)

I think this limit will actually be ok, I'm not so concerned as to what
order the elements come into view as I am that the initial page load
will be faster. I've tried telling these users that firefox will load
their page as it's downloaded, but they have to use IE for Oracle.
(stupid Oracle) 

This is not a mission critical application, more of a proof-of-concept
project for me to see if this can be done, and whether it's
advantageous. 

Thanks for the suggestions so far, does anyone know js well enough to
know if I can create variable variables somehow? 

Thanks,

Matt 

-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu] On Behalf Of Mike Dougherty
Sent: Wednesday, July 25, 2007 12:23 PM
To: [JavaScript List]
Subject: Re: [Javascript] Multiple ajax calls onload

On 7/25/07, Murphy, Matt <Matt.Murphy at thermofisher.com> wrote:
> I thought I had this ingenious idea, to make a slow-loading page load 
> faster, I'd break up the sections into divs, and then call a series of

> ajax functions to populate those divs asynchronously.

according to (1) - the xmlhttprequest object only gets two connections
running anyway

i think the best solution to making a slow-loading page load faster is
to reduce the amount of data that gets downloaded.  If you are sure you
have the smallest/most compressed images you can afford to sacrifice
quality for, and you have only the cleanest markup (free of deprecated
attributes, over classed objects and inline javascript event
registration) then you probably are not going to get much better
performance using workarounds.

(1)
http://www.oreillynet.com/xml/blog/2006/10/what_i_didnt_know_about_xhr.h
tml

(of course this is only my opinion and might be proven wrong)
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list