Maestro File Sizes
MaestroThe UI design product. |
Form Builder
Template Designer | All versions
This feature is related to all versions.
Maestro file sizes can become quite large when the HTML file that is used to create the form and the assets that are used to extend the functionality of the form are mismanaged. The file size of a Maestro form can affect the efficiency of the form when it is published and deployed to an environment. Large file sizes can also lead to forms that are slow and unresponsive when being edited by form builders and developers.
There are several approaches to take to keep Maestro file sizes down. The list below identifies several approaches that are recommended to minimize the file size of a Maestro form.
- When publishing a form, ALWAYS select the Minify Code build option checkbox. Selecting this build option will reduce the size of your form without any extra work and will ensure that your form is efficient to transmit across different deployment environments. The screenshot below highlights the Minify Code build option checkbox.
- Never publish a form that still has comments in the code. Publishing a form with comments will increase the size of the Maestro HTML file and extend the time it takes the form to load each time you want to edit the form.
- Use the Repeating Block Template when multiple instances of the same component are required. For example, when asking for multiple family members names, use a single repeating block template rather than hard-coded text inputs for each family member. Using repeats can decrease the size of the HTML file by 50%.
- Where possible, use a common JavaScript Library to store Maestro business rules, DO NOT repeat the same lines of code when the same rule is used in multiple places in the form.
- Where possible, do not hardcode long dropdown list options, instead, use other means to populate long dropdown list options. For example, do not hardcode a list of countries.