Expand my Community achievements bar.

SOLVED

Can we defer the adobe launch script added in the header of the our website.

Avatar

Level 1

Hi,

 

I wanted to understand if its absolutely necessary to load adobe launch script asynchronously or we can defer it.

What would be the impact if we defer the script.

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You can make the Launch script load synchronously by removing the "async" attribute in the <script> tag. But by doing so, you lose all of the benefits of asynchronous code execution within the Launch library, e.g. all actions in a Rule will run synchronously. Make sure that that is your intended result too.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

You can make the Launch script load synchronously by removing the "async" attribute in the <script> tag. But by doing so, you lose all of the benefits of asynchronous code execution within the Launch library, e.g. all actions in a Rule will run synchronously. Make sure that that is your intended result too.

Avatar

Community Advisor

According to Andrey, you should not use the "defer" attribute in the Launch embed script tag. See here: https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/adobe-launch-async-javasc...