Ticket #5136 (closed defect: duplicate)
race condition loading CSS / initializing widgets
| Reported by: | bill | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3 |
| Component: | Dijit | Version: | 0.9 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by bill) (diff)
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.