PreloadContent (Method)

Applies To:

ActiveDocument object

Description:

Enables the pre-loading of embedded browser objects for the currently active section in order to increase performance in EPM Workspace, especially if the section contains large startup scripts. When the Interactive Reporting Service encounters an embedded browser object, it generates and sends the empty Dashboard HTML with the embedded browser object to the browser, which contains only iframes of the embedded browser object. When the HTML is rendered, the browser processes the URLs of the iframes automatically. At the same time, the Interactive Reporting Service resumes the processing of the section and executes any Object Model script if it exists. Finally the browser is refreshed with the actual Dashboard HTML. This method preloads the section named in the argument. By default, if no section name is specified, the active section is preloaded. The method is valid only if the specified section is of a Dashboard type and contains an embedded browser object.

The PreloadContent (Method) should be exercised carefully, following these recommendations:

Syntax:

Expression.PreloadContent([optional] String SectionName]

Expression Required:

An expression that returns section object.

Example:

This example shows how to preload the Dashboard section.

ActiveDocument.PreloadContent("Dashboard")