Confirmed users
502
edits
| Line 11: | Line 11: | ||
To present the visuals as fast as possible, we determine the first panel to be displayed and then append the HTML elements of the panel to the DOM tree. In normal launch path the first panel would be the root panel, while if the app is invoked by an activity request, the first panel is determined by the parameter. Note that at this time the panel is visible but still not interactive because the associated modules of the panel are not loaded yet. | To present the visuals as fast as possible, we determine the first panel to be displayed and then append the HTML elements of the panel to the DOM tree. In normal launch path the first panel would be the root panel, while if the app is invoked by an activity request, the first panel is determined by the parameter. Note that at this time the panel is visible but still not interactive because the associated modules of the panel are not loaded yet. | ||
There can be a short gap between the panel being presented and all fundamental modules loaded. The time results from loading and initializing requirejs. '''InitialPanelHandler'''(js/startup.js) was introduced to provide basic interactions until the associated modules get loaded. One can provide their own panel handler if the required interactions are beyond what '''InitialPanelHandler''' can provide. | There can be a short gap between the panel being presented and all fundamental modules loaded. The time results from loading and initializing requirejs. "'''InitialPanelHandler'''"(js/startup.js) was introduced to provide basic interactions until the associated modules get loaded. One can provide their own panel handler if the required interactions are beyond what '''InitialPanelHandler''' can provide. | ||
'''window.LaunchContext''' is constructed during the starting up. The object has a property called '''pendingTargetPanel''' that specifies the panel that a user would like to navigate. When the fundamental modules are loaded, the user is brought to the specific panel. | '''window.LaunchContext''' is constructed during the starting up. The object has a property called '''pendingTargetPanel''' that specifies the panel that a user would like to navigate. When the fundamental modules are loaded, the user is brought to the specific panel. | ||