Configure Widget Initialization on Startup for Your Analytic Applications

In SAP Analytics Cloud, analytics designer you can use the widget action Always initialize on startup to influence the performance of your analytic application if the application runs using background loading.

In the widget's styling panel you can set the action Always initialize on startup. This allows you for example, to access widgets that are used in the onInitialization script without the need to wait for these widgets to be initialized in background.

If you set a widget to Always initialize on startup, the widget will be initialized with all the visible widgets if background loading has been enabled.The widget initialization on startup takes place before the onInitialization script is performed. This will bring a performance advantage if the widgets are accessed while those scripts (or any other script that will be started) are performed and before the background loading has been finished.

Note
Please note the following:
  • Setting a widget to Always initialize on startup has no effect if the widget is embedded in a container that is invisible and Always initialize on startup on the container is not set. So if you use this function for widgets that are embedded in a container, please make sure that either the container itself is visible at runtime or you have enabled Always initialize on startup for the container.

  • If the widget for which you set Always initialize on startup is used as data pool only and never becomes visible at runtime, SAP strongly recommends to place this widget directly on the canvas instead of embedding it in a container.

  • Please be aware that in the context of background loading "widget is visible" means the following:
    • You have set the widget action Show this item at view time in the widget's styling panel.

    • You have placed the widget in the visible part of the canvas.

    Therefore it can make sense to use Always initialize on startup also for widgets with the action Show this item at view time enabled, if you are not sure if the widget is initially visible on the user screen for example because of a low screnn resolution.