Ticket #2771 (closed defect: fixed)

Opened 19 months ago

Last modified 18 months ago

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

Reported by: jburke Owned by: jburke
Priority: normal Milestone:
Component: PackageSystem Version: 0.4.2
Severity: normal Keywords:
Cc:

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

Changed 19 months ago by jburke

  • status changed from new to closed
  • resolution set to fixed

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

Changed 19 months ago by jburke

  • status changed from closed to closed
  • resolution set to fixed

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

Changed 19 months ago by jburke

(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.

Changed 19 months ago by jburke

There is a good test file in #2888.

Changed 18 months ago by anonymous

  • milestone deleted

Milestone 0.4.3 deleted

Note: See TracTickets for help on using tickets.