You are here: User interface > Preflight optimization > Checking optimization results and JavaScript file dependencies

Checking results and JavaScript file dependencies

View the preflight optimization report to see a list of components by category and to compare the static content’s original size to its optimized size.

On the report screen, you can analyze any rule that has the Open icon displayed next to it.

Prerequisite: Run a preflight optimization on a portal.

  1. On the Preflight Optimization screen, click the View report link for the optimized portal with static content data that you want to review.

    The Usage tab of the report screen lists the components—rules, layouts, controls, actions, and processes—that are used in the application and their corresponding usage counts.

  2. On the Usage tab, expand any component to see the rules that use that component.

    For example, if you click the Open icon for the pxTextArea component, the UIComponent Definition screen displays, listing the files on which the pxTextArea control is dependent.

  3. Optional: To see all components that are available in the system, select the Show all components check box.

  4. On the Rules tab, expand folders in the hierarchical table of rules to drill down and click the Open icon to open the rules or to see the UI component definitions.

  5. On the CSS Formats tab, analyze the total number of CSS formats used by the access group (portal), the original size of the Cascading Style Sheet files, and the optimized size, both as the actual file size and as a percentage of the original file size.

    The optimization process skips any skin elements that are not used by the application. Specifically, the optimization skips the generation of CSS:

    The optimization process also removes unnecessary CSS files, such as files that are only needed for specific skin elements, for specific controls, for specific formats of specific controls, and so on.

  6. Optional: Drill down to see detail for the CSS formats.
  7. On the JS Dependencies tab, review the total number of JavaScript files optimized, the original size, and the optimized size (and percentage saved), and explore dependencies to determine which files you can remove without affecting your application’s functionality.

  8. On the JS Stack tab, review the total number of JavaScript files that were optimized, listed in dependency order; the original size; and the optimized size (and percentage of original size).

    Expand sections to see where JavaScript files are included:

    Click the Open icon to display the contents of the JavaScript file on the Text File rules screen so that you can check the file's syntax.