Mystery index.js file?

It is probably something I have done but have been unable to track it down so far. :confused:

In my published site, I have a javascript file index.js for all published pages.

The contents are similar to this:



var RWElements={};

RWElements.rw2143BA57_10C4_4929_955F_980A94EC70B5 = {};
RWElements.rw2143BA57_10C4_4929_955F_980A94EC70B5 = (function(componentId) {
    
console.log(`Running JS for element with id: `)

return componentId;})(RWElements.rw2143BA57_10C4_4929_955F_980A94EC70B5);

The RWElements.rw2143BA57_10C4_4929_955F_980A94EC70B5 is different for every file.

I don’t want the console log message to appear. Any clues as to what would cause this javascript file to be created and how I can track down why it is created?

If you start an HTML-Element this is the default js.

Thank you :folded_hands:

It was in an HTML component (in a Global) I was using on every page. So a one line deletion and problem solved. :slightly_smiling_face: