Preloading Entities
Views are hidden behind a loading spinner image until data is available, resulting in more optimal data fetching and less UI flicker.
It is not always possible for the VDL engine to determine all scenario and entity usage until the preload step has completed and the UI is partially rendered. The view will still function correctly, as the data will be requested on demand. However, this situation is not optimal.
When entity data is fetched on demand after the preload step, a [VDL HINT] is logged in the console. It identifies the scenario and entity being requested and offers a generated VDL snippet you can add to your VDL code to include in the preload step using the <vdl-preload> element.
<vdl-preload entities="MyBool,IntArray" scenarios="1"></vdl-preload>Replace scenarios="1" with scenarios="all" to preload the entities for all scenarios.
<vdl-preload load-parameters="true" scenarios="all"></vdl-preload>The final example preloads all attachment metadata for the second scenario:
<vdl-preload load-attachments="true" scenarios="1"></vdl-preload>
© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.