Opened 11 years ago

Closed 11 years ago

#8085 closed defect (wontfix)

dojo.addOnLoad inconsistency between IE6 and FF3

Reported by: Les Owned by: anonymous
Priority: high Milestone: tbd
Component: Core Version: 1.2.1
Keywords: addOnLoad Cc: James Burke
Blocked By: Blocking:

Description

http://dojotoolkit.org/forum/dojo-core-dojo-0-9/dojo-core-support/dojo-addonload-inconsistency-between-ie6-and-ff3

Steps to recreate:

  1. Enter the following in Firebug and run:
dojo.require("dojox.xml.DomParser");
  1. Now enter:
    dojo.require("dojox.xml.DomParser");
    dojo.addOnLoad(function() {
       alert("inside");
    });
    alert("outside");
    

Repeat the same steps in IE6. I used the DebugBar? console. You will see that in IE alert will first display 'outside' and then 'inside'. The order is reversed. Why this inconsistency? I tried release 1.1.1 and 1.2.1

Change History (1)

comment:1 Changed 11 years ago by Tom Trenka

Cc: James Burke added
Resolution: wontfix
Status: newclosed

See the same thread...but the bottom line is that there is a setTimeout within dojo._callLoaded, there to workaround specific browsers (such as IE) that have synchronization issues WRT to conflicting loading resources and causing a possible hang.

There is a note within that code that asks if all browsers should be routed through the timeout; that's a separate issue, though.

Note: See TracTickets for help on using tickets.