File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Loading IFRAME's parallely Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Loading IFRAME Watch "Loading IFRAME New topic

Loading IFRAME's parallely

Karthik Prabu
Ranch Hand

Joined: Dec 27, 2002
Posts: 48
Hi All,

We have a webpage with around 10 IFRAME's pointing to different applications in the same domain( Ex., etc.. ). We noticed that IFRAME's are not loaded concurrently. When we did some research we found that in RFC for HTTP1.1
Clients that use persistent connections SHOULD limit the number of simultaneous connections that they maintain to a given server. A single-user client SHOULD maintain AT MOST 2 connections with any server or proxy.
is mentioned. A work around given by IE for this issue is here. But this cannot be used in our case as we can't ask our clients to change their registry settings.

Is there any other workaround for this ?

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
The browser is going to load the content as it goes down the page rendering it. There is no way to avoid this.

Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
Instead of IFRAMEs you could have DIVs loaded asynchronously using the XMLHttpRequest object. In IE 6, at least, this ignores the "2 persistent connections" issue somehow. Of course that kind of loophole might be closed in the next patch, and to use XMLHttpRequest your clients would have to have ActiveX enabled in IE. Note that on Mozilla browsers the max persistent connections is defaulted to 2 and that does affect XMLHttpRequest requests. But this can be changed through about:config without touching the registry.

I agree. Here's the link:
subject: Loading IFRAME's parallely
It's not a secret anymore!