UpdatePanel Async Postsback slow in IE…Part 3

So, I have received an updated script from Microsoft for KB 2000262.  The issues I found in the last script are now fixed.  In my testing so far it appears to be faster and stable.  The JS function is below, I am sure the KB will be updated soon.

    function disposeTree(sender, args) {
        var elements = args.get_panelsUpdating();
        for (var i = elements.length - 1; i >= 0; i--) {
            var element = elements[i];
            var allnodes = element.getElementsByTagName('*'),
                length = allnodes.length;
            var nodes = new Array(length)
            for (var k = 0; k < length; k++) {
                nodes[k] = allnodes[k];
            }
            for (var j = 0, l = nodes.length; j < l; j++) {
                var node = nodes[j];
                if (node.nodeType === 1) {
                    if (node.dispose && typeof (node.dispose) === "function") {
                        node.dispose();
                    }
                    else if (node.control && typeof (node.control.dispose) === "function") {
                        node.control.dispose();
                    }

                    var behaviors = node._behaviors;
                    if (behaviors) {
                        behaviors = Array.apply(null, behaviors);
                        for (var k = behaviors.length - 1; k >= 0; k--) {
                            behaviors[k].dispose();
                        }
                    }
                }
            }
            element.innerHTML = "";
        }
    }


Part 2
Part 1

Advertisements

UpdatePanel Async Postsback slow in IE….what!?

How can it be that this problem only occurs in IE.  It is their technology on their platform!

When using Internet Explorer to browse a page that contains an UpdatePanel, there is a delay (often anywhere between 10 seconds and 45 seconds or more) after clicking a page element that initiates an async postback. The delay is not experienced when using browsers other than Internet Explorer.

FYI,  FireFox’s performance is superior on the same code base in my experiences so far.  I have opened up a case with Microsoft, so we will see what the IE team has to say.  More to come…

http://support.microsoft.com/kb/2000262

IE has one good purpose…

It allows me to install Firefox on a new Windows machine!  Ha ha chuckle chuckle, yes I am rebuilding a laptop today. 🙂

Posted in Uncategorized. Tags: . 2 Comments »

Xenocode Browser Sandbox – Run any browser from the web

If you ever needed to test cross-browser and or across browser versions, you how much of a pain that can be.  You can always setup VM’s(VMware or Hyper-V) but that can be more work than necessary.  These guys have figured it out a much better approach with browser virtualization.

Click the Xenocode WebApp to launch directly from the web. WebApps require no setup and run in isolated virtual environments.

xneocode