0 votes
786 views
by (21.5k points)

1 Answer

0 votes
ago by (30.6k points)

The UI Toolkit renders every coach view on the page at load, but several controls defer the expensive part until it is needed - that is what "lazy loading" means in the toolkit:

  • Tab Section: with lazy rendering enabled the tabs' content views are created when the tab is first activated; the CSHS data is already in the browser, only the DOM work is deferred. Switching back does not re-render.
  • Collapsible Panel: content renders on first expand when configured; Modal Section: content renders when the modal is first shown.
  • Table: only the current page's rows are rendered (pagination); cells that contain controls are created per visible row, which is why big tables should page.
  • Visibility Hidden: a view whose visibility is Hidden is not rendered at all until it is made visible - use it for sections that may never be needed; when visibility changes to visible the view's load runs at that moment.
  • Data: nothing is lazy - all of tw.local travels with the page; lazy data is your job (Service Call on demand, paged services).
// a heavy section hidden until requested: nothing rendered before
${Analytics}.setVisible(true);          // now the child views load (their "load" handlers run), charts are built once
${Details}.setVisible(false, true);      // second argument on newer toolkits: collapse without destroying (keeps state)

Custom coach views can follow the same pattern (question 2527) by rendering in view (when shown) rather than load, or by observing visibility.

References

Related questions

0 votes
1 answer 848 views
0 votes
1 answer 1.3k views
0 votes
1 answer 1.5k views
0 votes
1 answer 705 views
+1 vote
1 answer 915 views
0 votes
1 answer 1.5k views
0 votes
1 answer 1.3k views
0 votes
1 answer 715 views
0 votes
1 answer 1.1k views
0 votes
2 answers 3.1k views
0 votes
1 answer 1.1k views
0 votes
1 answer 893 views
0 votes
1 answer 1.2k views
asked Jul 11, 2017 by ashokch (320 points)
0 votes
1 answer 2.5k views

723 questions

807 answers

98 comments

4.9k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...