1.7

Table Of Contents
When async is checked, the script executes asynchronously with the rest of the page
(while the page continues the parsing).
When neither option is checked, the script is fetched and executed immediately, while the
parsing of the page is paused.
6.
Optionally, for a Capture OnTheGo Form, you can check Use cached Capture
OnTheGo resource, to prevent downloading a remote JavaScript file again if it has been
downloaded before. The file should be available on a publicly accessible location, for
example: a folder location on a corporate website, hosted by a CDN (Content Delivery
Network) or shared via a Workflow process.
Note
In Workflow, when using the Create Web Content task, check the Embed All Resources
option to download and embed all remote resources. (See Workflow Help: Create Web
Content.)
Popular hosted frameworks on CDN networks are:
l jQuery on MaxCDN
l Zurb Foundation on CDNJS
l Bootstrap on MaxCDN
l Multiple frameworks on Google Developers
Including a JavaScript file in a Web context
To link a JavaScript file to the Web context, or to a certain Web page template or COTG
template:
1.
On the Resources pane, expand the Contexts folder, and then right-click the Web
context, or expand the Web context and right-click a Web section.
2.
Click Includes.
3.
From the File types dropdown, select JavaScripts.
4. The available JavaScript files are listed at the left. Use the arrow buttons to move the
JavaScript files that should be included to the right-hand list. Using the Up and Down
buttons you can change the order of the files, too.
5.
Click OK.
Page 374