Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Disabling AppMeasurement.js in edit mode.

santhoshk392709
Level 2
Level 2

Hi, 

Can anyone advise how to disable 

AppMeasurement.js

in edit mode ??

 

Thanks,

Santhosh 

1 Accepted Solution
Dipti_Chauhan
Correct answer by
Community Advisor
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
Dipti_Chauhan
Correct answer by
Community Advisor
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

santhoshk392709
Level 2
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

asutosh_jena
Community Advisor
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!