View Full Version : Pre-Rendering Widgets to improve Tab Loading Speed

4 Jan 2012, 7:05 PM
I am looking for suggestions how to improve the display time of a complicated widget.

The widget in particular is a large FlexTable, it usually takes about 20 seconds to load. The TabItem I want to render it in, is always disabled on application startup.

private void createDetailsTab() {
tabItemDetails = new TabItem("Details");
tabItemDetails.setLayout(new FitLayout());
cocFormDetails = new NewRecordFlexTable();

Is it possible to have this complex FlexTable be rendered such that when the user enables this TabItem, the FlexTable would be ready?

The user can Cancel the use of this TabItem, and if they choose to go back to the TabItem, the FlexTable is instantly present. Just the first time is painfully slow, is there are way to have the first time a user enables this TabItem, it renders the FlexTable just as rapidly as in the subsequent times?

Thanks in advance.