Opened 15 years ago

Last modified 14 years ago

#5136 closed defect

race condition loading CSS / initializing widgets — at Initial Version

Reported by: bill Owned by:
Priority: high Milestone: 1.3
Component: Dijit Version: 0.9
Keywords: Cc:
Blocked By: Blocking:


Bug #5013 demonstrates a race condition with executing our JS initialization code before the CSS has finished downloading. Problem can happen on any browser although is most likely to happen on Safari since that's the fastest browser. Even after BorderLayout? widget is finished, things like TabContainer? still need all CSS loaded before they initialize, in order to compute the height/width of the tab labels correctly.

One possible solution is to implement a synchronous dojo.requireCSS() call, although that's complicated since it needs to deal @import statements somehow.

For now will add workaround code into mail demo but should fix for real.

Change History (0)

Note: See TracTickets for help on using tickets.