Optimize Story Loading

You can improve your SAP Analytics Cloud story's performance by loading restricted contents.

You can choose how the story is loaded in both edit time and view time. From Edit section in the toolbar, select Start of the navigation path Data Refresh Next navigation step Loading Optimization SettingsEnd of the navigation path. Select one of the following loading options:

Option

Description

Viewport Loading (Default)

Improves performance by only loading the contents that are in the visible area of the screen. Contents are loaded until you stop scrolling. Works in view time only.

Background Loading

Improves performance by first loading the visible contents and then invisible ones in the background. Works in view time only.

None

All the contents are loaded when the story is opened. This option isn't available in view time.

For more information about the loading options, see the following sections.

If you choose viewport or background loading, you can still load widgets out of the viewport or hidden in view time by selecting Always initialize on startup in the Styling panel, which overwrites the loading settings. For more information, see Initialize Widgets on Startup.

Restrict Content Loading to the Visible Area of the Screen

You can speed up your story's view time performance by choosing to only load the contents in the visible area. Instead of waiting for all of the contents in your story to load, you can start interacting with the data right away.

Other contents are installed when you scroll to a new section, but not until you stop scrolling.

Load Contents in the Background

Different from viewport loading, visible contents are still loaded in view time, which are displayed to story viewers at first. In a second step, invisible contents are initialized in the background to be available.

Load All the Contents

All the contents are loaded on initialization, which applies to both edit time and view time.

In edit time, if you choose to load all the contents, later viewers can't change the loading settings in view time.

Preload Adjacent Pages

In addition to the standard loading options, you can enable preloading for the next and previous pages. This reduces perceived load times when navigating between pages, as adjacent content begins loading in the background.

To turn on this setting in edit mode, go to: Start of the navigation pathData Refresh Next navigation step Loading Optimization Settings Next navigation step Preload PagesEnd of the navigation path.
Additional details:
  • How preloading works: After the widgets on the current page are loaded following the configured page loading option, widgets on adjacent pages are initialized one by one, without running their queries.

  • Cache limits: Preloaded content does not count toward cache limits, which you can adjust using Override Cache Limit under Cache Settings (default number of widgets that are cached is configured under Start of the navigation pathSystem Next navigation step AdministrationEnd of the navigation path ).

  • Model metadata: Model metadata for the next page is preloaded in the background based on the models used by widgets on that page.

  • Authentication: If an adjacent page contains a remote model that requires authentication, the authentication prompt will appear while you are still on the current page.