This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 15376
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.

It is sorta covered in the JavaRanch Style Guide.
subject: Loading IFRAME's parallely
Similar Threads
PUT method of HTTP
jk connector tomcat 4.1.27
Why HttpSession expired ?
Reg : access through SSl
Problem while submitting action through JavaScript