decorative banner

Flattening the script library


    The external JavaScript library file contains the entire GoLive JavaScript library even if your pages don't use all of the functions within it. You can flatten the file to remove any JavaScript that is not used in the site. This reduces the library's file size and decreases its download time. You can manually flatten the library file of a single site, set a site's Site Upload or Export preferences to automatically flatten the library file, or set the application preferences to flatten the library file of all sites before upload or during export.

To manually flatten the JavaScript library of a single site:

    Open a site window and choose Site > Flatten Script Library.

To set a site's preferences to flatten the JavaScript library upon upload:

  1. In the Site Settings dialog box, select Upload/Sync Times.
  2. Select Site specific settings.
  3. Select Flatten Script Library and click OK.

To set a site's preferences to flatten the JavaScript library upon export:

  1. In the Site Settings dialog box, select Export in the left pane.
  2. Select Site Specific Settings in the right section.
  3. Select Flatten Script Library in the Strip GoLive Code For section.

To set all sites to flatten the JavaScript library upon upload:

  1. Choose Edit > Preferences.
  2. Expand Site and select Upload / Sync Times.
  3. Select Flatten Script Library and click OK.

To set all sites to flatten the JavaScript library upon export:

  1. Choose Edit > Preferences.
  2. Expand Site in the left pane and select Export.
  3. Select Flatten Script Library in the Strip GoLive Code For section.