You run a preflight optimization to reduce an application’s unnecessary static content and improve its loading time.
Before you run the preflight optimization for your application, check your application’s guardrail compliance and take any corrective action necessary to establish a score of 90 or better. By honoring guardrails, you ensure that the reductions in static content are as complete as possible.
Click Designer Studio > User Interface > Application readiness > Preflight optimization.
On the Preflight Optimization screen, click Add optimization.
In the Add optimization configuration dialog box, complete the following steps:
In the Access group list on the Basic tab, select the access group that you want to optimize. The associated portal name is displayed on the right.
Under Optimize, specify whether you want to optimize JavaScript files, Cascading Style Sheet (CSS) files, or both:
Optional: To reduce the size of your JavaScript files by removing comments and other unnecessary elements, select the Use JS Compacting check box.
On the Advanced tab, you can select individual rules that will be included in—or excluded from—the analysis of the application's design-time model.
Click Submit to save the optimization's configuration and start the analysis.
If you are running the access group's preflight optimization for the first time, or if you selected the Use JS Compacting check box, the process might take a few minutes.
After optimization, the application uses the optimized files by default.
Optional: To return the application to its previous JavaScript and CSS usage temporarily, clear the Enable check box on the Preflight Optimization screen to temporarily disable the optimization for the access group and portal).
You might do this if you encounter problems in the application and want to isolate them for testing and correction before you repeat the optimization process.
View the report to see optimization details such as the difference between the original size and the optimized size of the static content.
If you change the portal, the application, or the application’s skin, repeat the preflight optimization process to remove any unnecessary static content introduced by your changes.