Expand my Community achievements bar.

SOLVED

Disabling AppMeasurement.js in edit mode.

Avatar

Level 2

Hi, 

Can anyone advise how to disable 

AppMeasurement.js

in edit mode ??

 

Thanks,

Santhosh 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @santhoshk392709 

Can’t you just put author mode check while including launch script? 

may be I did not get your question completely 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @santhoshk392709 

Can’t you just put author mode check while including launch script? 

may be I did not get your question completely 

Avatar

Level 2

Hi @Dipti_Chauhan,

 

Thank you for replying back.

 

We identified some slowness in our authoring environments, due to Appmeasurement.js.

So, I am trying to disable in edit mode and enable it preview mode.

 

Thanks,

Santhosh

Avatar

Community Advisor

Hi @santhoshk392709 

 

AppMeasurement.js is called from your Adobe Launch script. If you want to disable it in the edit mode, then you need to add a condition check and if it's edit mode, then stop loading the launch script in edit mode which will internally stop loading the AppMeasurement.js.

 

You can check the edit mode in HTL. ${wcmmode.edit}

 

Just curious to know why you want to disable it? 

 

Thanks!