Theme JS YAML Configuration Reference

Theme JS YAML Configuration Reference

You can define a theme JS client extension with a client-extension.yaml file.

Usage Details

This client-extension.yaml file defines a theme JS client extension:

    name: Able Theme JS
    type: themeJS
    url: main.js

The required url property defines the JavaScript file’s location. When enabled on a page, all JavaScript resources at the URL run each time the page loads.

YAML Properties

These properties are specific to theme JS client extensions:

Name Data Type Description
url URL (Required) The path to the JavaScript file that is added to the HEAD of the page. The complete URI is prefixed by the baseURL value.

See Front-end Client Extension Properties for properties common to all front-end client extensions.