Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#2771 closed defect (fixed)

xd loading: in some cases, the xd loader will call onload listeners before dj_load_init has run

Reported by: James Burke Owned by: James Burke
Priority: high Milestone:
Component: Loader Version: 0.4.2
Keywords: Cc:
Blocked By: Blocking:

Description

In some rare cases using a combination of local and remote dojo modules, the xd loader will finish loading everything before the domcontentloaded/onload event in the browser fires. If it does, the xd loader calls dojo.hostenv.callLoaded() (the xd loader is usually the slower path, so it needs to call the onload listeners).

This is bad because the dom may not be ready yet.

Unfortunately, I do not have a good isolated test case. I saw it with some larger applications.

Change History (5)

comment:1 Changed 13 years ago by James Burke

Resolution: fixed
Status: newclosed

(In [8177]) Fixes #2771. An edge case when loading local and remote modules via xd.

comment:2 Changed 13 years ago by James Burke

Resolution: fixed

(In [8178]) (merge from 0.4 branch) Fixes #2771. An edge case when loading local and remote modules via xd.

comment:3 Changed 13 years ago by James Burke

(In [8179]) Refs #2771. An edge case when loading local and remote modules via xd. Second part of fix comes over when loader_xd.js is ported.

comment:4 Changed 13 years ago by James Burke

There is a good test file in #2888.

comment:5 Changed 12 years ago by (none)

Milestone: 0.4.3

Milestone 0.4.3 deleted

Note: See TracTickets for help on using tickets.