Create a JavaScript File

Create a plain JavaScript file and write any code you need; it will run for specific page after reload and page navigation or calling cleanup(); function call.

/fragments/js/specific/test.js

console.log("bing");copy

Configuring JS Specific Fragment

Inside the ref object, add a property named specific. Its keys must be the absolute pathnames of the pages that need custom code; each value is an array of absolute pathnames pointing to the JavaScript fragments that should run on that page.

/reference.js

export const ref = {
  js:{
    specific:{
        "/index.html": ["/fragments/js/specific/test.js"]
    }
  }
}copy
JS Every JS Common