2021.1

Table Of Contents
scripts normally run, whether or not their placeholder or selector is present in your template. It is
highly recommended to disable any script that is not relevant to specific sections or contexts.
When you disable a folder, all scripts in the folder will be disabled.
To enable or disable a script or a folder:
l On the Scripts pane, right-click the script or the folder and click Disable (if the script or
folder was enabled) or Enable (if the script or folder was disabled).
Tip
For more ways to optimize scripts, see "Optimizing scripts" on page883.
Import/export scripts
The easiest way to import scripts into another template is to open the template and use the
Import Resources dialog; see "Import Resources dialog" on page961.
Remember also to import or add any files that a script refers to.
Alternatively, scripts can be exported or imported via the Scripts pane.
To export a script:
1. On the Scripts pane, click on a script, and then click the Export button, or right-click a
script and select Export.
2. Give the script a name and click OK.
To import a script:
l On the Scripts pane, click the Import button. Find the script and click OK
Files that a script may refer to, such as images, snippets and fonts, are not exported or imported
together with a script.
Test the script to make sure that all files are present in the template and that the script's selector
matches something in the content of the template; see "Testing scripts" on the facing page.
Page 877