Table of Contents
Application Startup
Some details about the initialization of a qooxdoo application.
Loading phase
- Load HTML
- Load the JavaScript files
Before the load event is triggered
- Merge user settings from previously defined qx.Settings.
- Load qooxdoo core (OO, Array, String, validation, Object, ...)
- Load Logging module
- Instantiate qx.Init
- attach event handler to
onload,onbeforeunloadandununload
qx.core.Init.getInstance().setApplication(new my.namespace.Application);
Inside the onload event handler
qx.Init._onload:
- looks up the default application from the settings.
- delegates initialization of the framework to the application.
Initialization phase
- Instantiate qx.ui.core.ClientDocument. ClientDocument is the basic widget of all qooxdoo applications. It is the parent of all children inside your application. It also handles their resizing and focus navigation.
- Instantiate qx.event.handler.EventHandler. The event handler themselves get not yet attached.
Main Phase
- Call
mainof the user defined applications class. - Start preloading of images
Finalization Phase
This phase is started after the image preloader system has finished loading.
- Flush global queues. This creates the DOM nodes of the widgets and applies styling.
- Global event handler for mouse, key and focus events are registered.
