One of the critical phases of software design is application design. When designing your application, it's important to consider the following:
Application design includes application architecture, user interface design, and component design. If this phase of application development is neglected, usability and performance can be adversely affected. For example, poor performance can occur if the application has a poorly designed, complicated user interface and if the application uses components that aren't designed properly. While designing your General Interface application, consider the following best practices. Design Applications to be AsynchronousWhenever possible design your application to use asynchronous loading to improve performance and usability. Use the following techniques:
For more information, see General Interface Component Guide. Reuse Existing ComponentsLoading complex components can be one of the most expensive operations. Reuse components whenever possible instead of removing and recreating General Interface DOM nodes. There are typically two use cases for reusing components:
Don't Store Data in Form ElementsStoring data in form elements, which is a typical HTML pattern, is not recommended for General Interface applications. Instead of hiding and showing form elements to access data, persist data separately in an XML/CDF document or JavaScript variable. Note that persisting data as XML is recommended, because memory management for XML is better than for JavaScript objects. Once data is persisted, load and unload components as needed without losing data. For example, persist login and username data from a dialog and remove the dialog from the General Interface DOM instead of hiding the dialog. |
Contents
|
