Community

Bottom Loading JavaScript

Bottom loading your JavaScript can improve page load times as well as other benefits.

Steps

Follow these steps to bottom load your JavaScript.

1. Navigate to your Settings section -> Instance Settings category -> Developer.

Navigate to your instance's Settings section.

2. Toggle the "Automatically include JavaScript" in head setting to Off and save.

Automatically include JavaScript in head setting.

3. Navigate to the Editor and find the Loader listed under Views, and select it.

Editor section with loader file selected.

4. Add a script tag with the following Parsley call in the src attribute {{instance.getJsUrl()}}. For example: <script type="text/javascript" src="{{instance.getJsUrl()}}"></script>

Add a script tag to the Loader.

5. Save and Publish your changes to send them live.

Save and publish to send your changes live.