Bug 691 - [Chameleon] JavaScript loading architecture
: [Chameleon] JavaScript loading architecture
Status: NEW
: Chameleon
Core
: 1.99
: PC All
: P1 normal
: FUTURE
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-10-07 09:15 by
Modified: 2004-10-07 09:15 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-10-07 09:15:14
The way we use javascript in chameleon, especially the way that files are
included, is quite naive and does not accomodate the possibility of asynchronous
loading of these files.  The end result is the occasional javascript error
relating to functions or variables not being defined ... this should really be
'not defined YET' since inspecting the source of the page reveals that the code
really is getting included.

The architecture should include a notion of knowing when files have been
included and not accessing functions/variables until such time as they are
available.  There are numerous examples of much more sophisticated ways of
loading external js files that should be researched during this redesign.

Note that while this is listed as part of the CORE, it will really affect all
widgets and probably the widget developers documentation and the application
developer documentation.