Disabling AppMeasurement.js in edit mode. | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Dipti_Chauhan

Hi @santhoshk392709 

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

may be I did not get your question completely 

2 replies

Dipti_Chauhan
Community Advisor
Dipti_ChauhanCommunity AdvisorAccepted solution
Community Advisor
July 6, 2021

Hi @santhoshk392709 

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

may be I did not get your question completely 

Level 2
July 6, 2021

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

Asutosh_Jena_
Community Advisor
Community Advisor
July 6, 2021

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!