IE Slow Loading Progress Bar

 

This one took me by surprise. Here’s what happens.

1. You click on an anchor tag.

2. In the onclick event handler (JavaScript/client side), some dynamic objects/IFrames/behaviours (think DHTML) gets added to the DOM.

3. IE believes that the object being added in step 2 is a missing resource and needs to be loaded. Except that the missing resource is a programmatically added resource which doesn’t exist on a server somewhere.

4. So, you end up with a slow loading progress bar.

How do you fix this?

1. Put this in your event handler window.status = “Some interesting message”

2. Create an empty 1×1 IFrame, save a variable reference to it and write a blank character to it.

window.document.write(“”);
window.document.close();
Note: Here window is the IFrame window.

3. Create a 1×1 IFrame, but set its location to "about:blank"

Here are the reference links

From Stackoverflow

Microsoft KB article 320731

Advertisement

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.