2022.1

Table Of Contents
1. From the File types dropdown, select Stylesheets, JavaScripts or all.
2. The list at the left displays the style sheets and/or JavaScript files that are present in the
template's resources. The list at the right shows the style sheets and or JavaScript files
that will be included in the output of the current section (or in all Web sections, if you are
making settings for the Web context). Use the Include and Exclude buttons to move files
from one list to the other.
3. Files are included in the order shown. To change this order, click one of the included files
and use the Up or Down button.
Note
The styles in each following style sheet add up to the styles found in previously
read style sheets. When style sheets have a conflicting rule for the same element,
class or ID, the last style sheet wins’ and overrides the rule found in the previous
style sheet.
JavaScript Properties
The JavaScript Properties dialog appears when you right-click a JavaScript file on the
Resources pane and select Properties. (See also: "Using JavaScript" on page597.)
It contains three options:
l Name: This option lets you rename the JavaScript resource in the template. The link
between the JavaScript file and Web sections that include it will not be broken by
renaming the file. (See also: "Including a JavaScript file in a Web context" on page600.)
l Async: When async is checked, the script executes asynchronously with the rest of the
page (while the page continues the parsing).
l Defer: This option postpones the execution of the script until the page has finished
parsing. This is required by APIs like Google Maps.
It is recommended to check at least one of the options: async or defer, or both. Page content
will become visible more quickly, resulting in a better user experience.
If you enable both options, async takes precedence on modern browsers, while older browsers
that support defer but not async will fallback to defer.
When neither of the options is checked, the script gets fetched and executed immediately,
interrupting the page loading and rendering.
Page 1031